Basic Image AlgorithmS Library 2.8.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

BIAS::ShowCamWxFrame Class Reference

#include <Tools/BIASShowCamWX/ShowCamWxFrame.hh>

Inheritance diagram for BIAS::ShowCamWxFrame:
Collaboration diagram for BIAS::ShowCamWxFrame:

List of all members.

Public Member Functions

void AddDebugLevel (const long int lv)
void AddDebugLevel (const std::string &name)
bool * AddParamBool (const std::string &name, const std::string &help, bool deflt=false, char cmdshort=0, int Group=GRP_NOSHOW)
double * AddParamDouble (const std::string &name, const std::string &help, double deflt=0.0, double min=-DBL_MAX, double max=DBL_MAX, char cmdshort=0, int Group=GRP_NOSHOW)
int * AddParamEnum (const std::string &name, const std::string &help, const std::vector< std::string > &enums, const int deflt=0, const std::vector< int > *IDs=NULL, const char cmdshort=0, const int Group=GRP_NOSHOW)
int * AddParamInt (const std::string &name, const std::string &help, int deflt=0, int min=std::numeric_limits< int >::min(), int max=std::numeric_limits< int >::max(), char cmdshort=0, int Group=GRP_NOSHOW)
 For all adding routines:
std::string * AddParamString (const std::string &name, const std::string &help, std::string deflt="", char cmdshort=0, int Group=GRP_NOSHOW)
BIAS::Vector< double > * AddParamVecDbl (const std::string &name, const std::string &help, const BIAS::Vector< double > &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of double must be given as default vector!
BIAS::Vector< double > * AddParamVecDbl (const std::string &name, const std::string &help, const std::string &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 The same as above, but default is given by a string, syntax is as at command line "v_0 v_1 v_2", don't set empty string, cause the length is determined also by the number of values.
BIAS::Vector< int > * AddParamVecInt (const std::string &name, const std::string &help, const BIAS::Vector< int > &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of integer must be given a default vector!
BIAS::Vector< int > * AddParamVecInt (const std::string &name, const std::string &help, const std::string &deflt, char cmdshort=0, int Group=GRP_NOSHOW)
 The same as other AddParamVecInt(), but default is given by a string, syntax is as at command line "v_0 v_1 v_2".
bool CheckParam (const std::string &name)
 Check if parameter has already been added.
void ClearAllParams ()
 empties internal datastructures
void CreateCameraMenu ()
 Creates the menu for the available cameras.
void CreateMenu ()
 Creates the menu of the main window.
bool DebugLevelIsSet (const long int lv) const
bool DebugLevelIsSet (const std::string &name) const
void DisableDestructorWarning ()
 Uses this just before end of your program to avoid error from destructor.
int GetDebugLevel () const
std::ostream & GetDebugStream () const
void GetDebugStream (std::ostream &os) const
ParamGUIDialogGetDialog (wxWindow *parent, const wxString &title, bool bChancelButton=true)
 Builds up a wxDialog with a notebook embedded in it.
wxFrame * GetFrame (wxWindow *parent)
 Builds up a standalone wxFrame with a notebook embedded in it.
int GetFreeGroupID ()
 returns unused group id
int GetGroupID (const std::string &name)
 returns group id of parameter with name
int GetGroupIDForGroupName (const std::string &name)
std::string GetGroupName (const int group_id)
 gets the name of a group
wxNotebook * GetNotebook (wxWindow *parent)
 Builds up a wxNotebook with each parameter group on one page.
wxPanel * GetPanel (wxWindow *parent, int GroupID=GRP_ALL)
 Builds up a wxPanel with the parameters specified by GroupID.
bool * GetParamBool (const std::string &name) const
bool * GetParamBoolByIndex (const int i) const
 Get a Param-value by Index.
double * GetParamDouble (const std::string &name) const
double * GetParamDoubleByIndex (const int i) const
 Get a Param-value by Index.
int * GetParamEnum (const std::string &name) const
int * GetParamInt (const std::string &name) const
int * GetParamIntByIndex (const int i) const
 Get a Param-value by Index.
std::string * GetParamString (const std::string &name) const
std::string * GetParamStringByIndex (const int i) const
 Get a Param-value by Index.
BIAS::Vector< double > * GetParamVecDbl (const std::string &name) const
BIAS::Vector< int > * GetParamVecInt (const std::string &name) const
int GetSizeOfLongestParamName ()
 returns the size of the longest param name not marked as enhanced or hidden
int GetSizeOfLongestParamValueString ()
 returns the size of the longest param value string not marked as enhanced or hidden
bool GetWriteFlag ()
void InitCameras ()
 Initialize cameras with param file.
void InitParams (int &argc, char *argv[])
 Initializes all paramaters for param file.
bool IsUsedGroupID (const int group_id)
 returns if the group id is used
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel
void OpenDevices ()
 Tries to open all specified camera devices.
int ParseCommandLine (int &argc, char *argv[])
 scan command line arguments for valid parameters
void PrintDebugLevel (std::ostream &os=std::cout) const
int ReadParameter (const std::string &filename)
 read values for parameters from file
int ReadParameterXML (const std::string &filename)
 read values for parameters from xml-file
int RegisterCallbackObject (const std::string &name, ParamCallbackInterface *obj)
void RemoveDebugLevel (const long int lv)
void RemoveDebugLevel (const std::string &name)
void SetDebugLevel (const std::string &name)
void SetDebugLevel (const long int lv)
void SetDebugStream (const std::ostream &os)
void SetDefaults ()
 sets all entries to their initially (AddParam) given default values
int SetEnhancedFlag (const std::string &name, bool enhanced)
 if a parametr is marked as enhanced, it is hidden from the naive user
int SetGroupName (const int group_id, const std::string &name)
 sets the name for a group
int SetHiddenFlag (const std::string &name, bool hidden)
 if a parametr is marked as hidden, it is obsolete and hidden for all users, use this for parameters overwritten by caller class
bool * SetParamBool (const std::string &name, const bool &value)
double * SetParamDouble (const std::string &name, const double &value)
int * SetParamEnum (const std::string &name, const int &value)
 set the enum to the ID 'value'
int * SetParamEnum (const std::string &name, const std::string &value)
 set the enum to the ID corresponding to the string 'value'
int SetParameterWriteToFile (const std::string &name, bool writeToFile)
int * SetParamInt (const std::string &name, const int &value)
std::string * SetParamString (const std::string &name, const std::string &value)
BIAS::Vector< double > * SetParamVecDbl (const std::string &name, const BIAS::Vector< double > &value)
BIAS::Vector< int > * SetParamVecInt (const std::string &name, const BIAS::Vector< int > &value)
virtual int SetRangeInt (const std::string &name, const int min, const int max)
 Set [Min,Max] as new range, especially usefull in derived class PramGUI.
int SetShortCommand (const std::string &name, const char cmd)
 Add a short commandline switch to an existing parameter.
void SetWriteOptions (bool indent, bool comments, bool enhanced)
 ShowCamWxFrame (const wxString &title, const wxPoint &pos, const wxSize &size)
 Constructor.
void ShowData (std::ostream &os=std::cout, int grp=GRP_ALL, bool showenhanced=true)
 print all data in group grp including current values to os if grp = GRP_ALL, print all values if showenhanced = false, parameters marked as enhanced are not shown
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels
int ShowFormat7Selector (int camindex, dc1394video_mode_t mode)
 Shows the IEEE1394 Format7 selector frame.
void ShowParamGUI ()
 Shows the parameter GUI.
void StartSavingImagesToDisk ()
 Starts the saving from all images to disk from all activated cameras.
void StopSavingImagesToDisk ()
 Stops the saving from all images to disk from all activated cameras.
std::vector< int > UniqueSortedGroups ()
 Returns a vector of all group IDs (unique) in ascending order.
int UpdateParameter (int &argc, char *argv[], const std::string &default_filename)
 update all arguments from command line and parameter file 1.
void Usage (std::ostream &os=std::cout)
 print Help-Information to stdout
int WriteParameter (const std::string &filename)
 store complete set of parameter in file if write_comments is set, alo the help strings are written to the file if show_enhanced is set, also parameters marked as enhanced are written
int WriteParameterXML (const std::string &filename)
int WriteRunMe (const std::string &filename)
 writes complete command line including program name and unknown command line options, no defaults, no params read from file
virtual ~ShowCamWxFrame ()
 Destructor.

Static Public Member Functions

static long int GetGlobalDebugLevel ()
static int ParseListFile (const std::string &ListFileName, std::vector< std::string > &LinesInFile)
 Extracts lines from passed file.
static void SetGlobalDebugLevel (long int lev)

Protected Member Functions

void AddIEEECameraToMenu (int camindex, int IEEEIndex, bool fromFile)
 Adds a IEEE1394/Firewire camera to the menu.
void AddUEyeCameraToMenu (int camindex, bool fromFile)
 Adds a ueye camera to the menu.
void AddWebcamToMenu (std::string name, int camindex, bool fromFile)
 Adds a v4l or DShow camera to the menu.
void CleanUpAndExit ()
 called on end to close cams and exit
int CloseDevice (int camindex)
 try to close the device with index camindex
long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel
int CreateGrabThreadForCamera_ (int cameraIndex)
 Creates the thread for grabbing images for a camera.
int CreateImageSaveThreadForCamera_ (int cameraIndex)
 Creates the thread for saving images for a camera.
int CreateMasterThread_ ()
 Creates the master thread for handling cameras.
const std::map< const
std::string,
BIAS::ParamTypeBase * > & 
GetParamMap () const
std::map< const std::string,
BIAS::ParamTypeBase * > & 
GetParamMap ()
void GrabSingleImageUnthreadedFromCamera_ (int cameraIndex)
 Grabs an image frmo a camera without using threads.
void InitCamera (int camindex)
 try to initialze the device with index camindex
void InitCombinedImage ()
 Initializes combined image for selected camera (usb pmd)
void OnAbout (wxCommandEvent &event)
void OnChangeActivate (wxCommandEvent &event)
void OnChangeDeviceChannel (wxCommandEvent &event)
void OnChangeFirewireB (wxCommandEvent &event)
void OnChangeTrigger (wxCommandEvent &event)
void OnChangeVideoMode (wxCommandEvent &event)
void OnClickCamerasListBox (wxCommandEvent &event)
void OnFindIEEE1394 (wxCommandEvent &event)
void OnFindKinect (wxCommandEvent &event)
void OnFindOpenNI (wxCommandEvent &event)
void OnFindPMDTec (wxCommandEvent &event)
void OnFindPMDZess (wxCommandEvent &event)
void OnFindSwissRanger (wxCommandEvent &event)
void OnFindUEye (wxCommandEvent &event)
void OnFindWebcams (wxCommandEvent &event)
void OnFit (wxCommandEvent &event)
void OnGrab (wxCommandEvent &event)
void OnGrabContinuous (wxCommandEvent &event)
void OnGrabToStream (wxCommandEvent &event)
void OnHideCamerasListBox (wxCommandEvent &event)
void OnKeepScrollPosition (wxCommandEvent &event)
void OnKey (wxKeyEvent &event)
void OnOpenDPController (wxCommandEvent &event)
void OnOpenFlirController (wxCommandEvent &event)
void OnOpenViscaController (wxCommandEvent &event)
void OnQuit (wxCommandEvent &event)
void OnSaveParameters (wxCommandEvent &event)
void OnShowCamerasListBox (wxCommandEvent &event)
void OnShowController (wxCommandEvent &event)
void OnShowImage (wxCommandEvent &event)
void OnShowParameters (wxCommandEvent &event)
void OnTimer (wxTimerEvent &event)
void OnWindowClose (wxCloseEvent &event)
int OpenDevice (int camindex)
 try to open the device with index camindex
void ParseColorModels ()
 Parses the color models from param file to enum EColorModel.
void SaveImageUnthreaded_ (int cameraIndex)
 Save a image from camera with index cameraIndex.
void SelectAndShowCameraImage_ ()
 Selects the current image and shows it in image canvas.
int SelectedModeFromMenu (int camindex)
 Selects a mode from the menu of multiple modes are offered for a camera, used e.g.

Protected Attributes

long int _liDebugLevel
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class
std::map< std::string, long int > _String2Debuglevel
int ActiveCameras_
std::vector< std::string > ArgV_
bool bSaveImages_
bool bSaveToStream_
bool bSingleSaveDirCreated_
std::vector< wxMutex * > BufferAccess_
bool bWriteBuffered_
std::vector< bool > CameraActive_
std::vector< bool > CameraInitialized_
wxListBox * cameraListBox_
wxPanel * cameraListPanel_
wxMenu * CameraMenu_
std::vector< std::string > cameraNames_
std::vector< BIAS::VideoSource * > Cameras_
std::vector< BIAS::Camera
< unsigned char > * > 
CamImg_
BIAS::Camera< unsigned char > CamImgCombined_
std::vector< BIAS::Camera
< unsigned char > * > 
CamImgMiddle_
std::vector< BIAS::Camera
< float > * > 
CamImgPMDAmp_
std::vector< BIAS::Camera
< float > * > 
CamImgPMDDepth_
std::vector< BIAS::Camera
< float > * > 
CamImgPMDInt_
std::vector< BIAS::Camera
< unsigned char > * > 
CamImgRight_
bool CleanedUp_
std::vector< wxCondition * > ClientsCondition_
std::vector< wxMutex * > ClientsMutex_
std::vector
< BIAS::ImageBase::EColorModel
ColorModels_
std::string currentSaveDir_
std::string currentSingleSaveDir_
unsigned int dDirIndex_
int Delay_
bool DestructorWarning_
std::vector< int > DeviceChannel_
std::vector< std::vector
< std::string > > 
DeviceChannelNames_
unsigned int dSingleDirIndex_
bool EmptyDevice_
int FirstCameraID_
std::vector< int > Format7BpP_
std::vector< int > Format7ColorMode_
ShowCamWxFormat7Frameformat7Frame_
std::vector< BIAS::Vector2< int > > Format7LeftTop_
std::vector< BIAS::Vector2< int > > Format7WidthHeight_
unsigned int FrameCounter_
unsigned int GrabCounter_
BIAS::GrabMasterThreadgrabMasterThread_
std::vector
< BIAS::GrabSingleThread * > 
grabSingleThread_
std::vector< std::string > GroupNames_
BIAS::ImageCanvasIC_
std::vector< CameraInfoIEEECameraInfo_
std::vector< std::vector
< Camera< unsigned char > * > * > 
ImageBuffer_
std::vector< std::vector
< Camera< unsigned char > * > * > 
ImageBufferMiddle_
std::vector< std::vector
< Camera< float > * > * > 
ImageBufferPMDAmp_
std::vector< std::vector
< Camera< float > * > * > 
ImageBufferPMDDepth_
std::vector< std::vector
< Camera< float > * > * > 
ImageBufferPMDInt_
std::vector< std::vector
< Camera< unsigned char > * > * > 
ImageBufferRight_
bool InitCameras_
bool InitParams_
int LastCameraID_
unsigned int LastHeight_
unsigned int LastWidth_
struct optionlongopts
wxMenu * menuShow
int NumCamSel_
int NumIEEECams_
int NumOfCams_
bool OpenedDevices_
std::string * ParamBitFile_ [NUMBER_CAMERAS]
int * ParamCameras_ [NUMBER_CAMERAS]
int * ParamColorModel_ [NUMBER_CAMERAS]
std::string * ParamDevice_ [NUMBER_CAMERAS]
int * ParamDown_ [NUMBER_CAMERAS]
double * ParamFPS_ [NUMBER_CAMERAS]
wxFrame * paramFrame_
int * ParamHeight_ [NUMBER_CAMERAS]
std::string * ParamIP_ [NUMBER_CAMERAS]
wxNotebook * paramNotebook_
int * ParamPort_ [NUMBER_CAMERAS]
int * ParamWidth_ [NUMBER_CAMERAS]
wxButton * pButtonContinuous
wxButton * pButtonController
wxButton * pButtonGrab
wxButton * pButtonIEEE1394
wxButton * pButtonPMDTec
wxButton * pButtonSR
wxButton * pButtonStream
wxButton * pButtonWebCams
wxCheckBox * pCheckBoxFit
wxCheckBox * pCheckBoxKeepScrollPosition
std::string procPlugin_
std::vector< unsigned int > ReadIndex_
std::vector
< BIAS::ImageSaveThread * > 
saveThreads_
std::vector< float > SelectedFps_
std::vector< wxCondition * > ServerCondition_
std::vector< wxMutex * > ServerMutex_
std::vector< bool > SetFirewireB_
std::vector< bool > SetTrigger_
std::vector< bool > SetUserMode_
BIAS::Camera< unsigned char > ShowImage_
unsigned int ShowXB3_
std::string sourcePlugin_
wxSplitterWindow * splitterWindow_
TimeMeasure StopWatch_
wxTauControlFrametauControllerFrame_
std::vector< bool > ThreadInited_
wxTimer Timer_
bool TimerActive_
std::vector
< BIAS::VideoSource_Controller_Base * > 
VideoControllers_
std::vector
< ImageBase::EColorModel
ViewColorMode_
unsigned int Win32DCAMNumber_
bool WriteComments_
bool WriteEnhanced_
bool WriteFlagSet_
bool WriteIndent_
std::vector< unsigned int > WriteIndex_
std::vector< BIAS::Camera
< unsigned char > * > 
XB3AllInOne_

Static Protected Attributes

static std::ostream _zDebugStream
static long int GlobalDebugLevel = 0

Detailed Description

Definition at line 163 of file ShowCamWxFrame.hh.


Constructor & Destructor Documentation

ShowCamWxFrame::ShowCamWxFrame ( const wxString &  title,
const wxPoint &  pos,
const wxSize &  size 
)
ShowCamWxFrame::~ShowCamWxFrame ( ) [virtual]

Destructor.

Definition at line 341 of file ShowCamWxFrame.cpp.


Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const long int  lv) [inline, inherited]
void BIAS::Debug::AddDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 363 of file Debug.hh.

void ShowCamWxFrame::AddIEEECameraToMenu ( int  camindex,
int  IEEEIndex,
bool  fromFile 
) [protected]

Adds a IEEE1394/Firewire camera to the menu.

Definition at line 2520 of file ShowCamWxFrame.cpp.

References OnChangeActivate(), OnChangeFirewireB(), OnChangeTrigger(), OnChangeVideoMode(), and BIAS::VideoSource_DCAM::VideoModeToString().

bool * Param::AddParamBool ( const std::string &  name,
const std::string &  help,
bool  deflt = false,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]
double * Param::AddParamDouble ( const std::string &  name,
const std::string &  help,
double  deflt = 0.0,
double  min = -DBL_MAX,
double  max = DBL_MAX,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]
int * Param::AddParamEnum ( const std::string &  name,
const std::string &  help,
const std::vector< std::string > &  enums,
const int  deflt = 0,
const std::vector< int > *  IDs = NULL,
const char  cmdshort = 0,
const int  Group = GRP_NOSHOW 
) [inherited]
Parameters:
enumsholds all enumeration names.
IDscan be a pointer to a vector of integers. It must have the same size as 'enums' and gives each name a number, which must be unique! If NULL the enums are numbered from 0 to enums.size()-1
Author:
mdunda 03 2004
Examples:
ExampleAbsoluteOrientation.cpp, ExampleCylinderMapping.cpp, ExampleParam.cpp, and ExampleRectification.cpp.

Definition at line 468 of file Param.cpp.

References BIAS::ParamTypeEnum::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeEnum::Map_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeEnum::value_, and BIAS::ParamTypeBase::WriteToFile_.

int * Param::AddParamInt ( const std::string &  name,
const std::string &  help,
int  deflt = 0,
int  min = std::numeric_limits<int>::min(),
int  max = std::numeric_limits<int>::max(),
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

For all adding routines:

Parameters:
nameis the unique identifier of the parameter
helpis a help or 'tooltip' string for that parameter
defltis a default value for that parameter. Note that not every parameter type has a default at compile time!
cmdshortis a short command option for the command line
Groupis a number to group some parameters for visualization, e.g. all matchers are in group 1, all trackers are in group 37 etc. When printing to screen, you can limit the output to a group of interest. The default is 0 - no special group.
Author:
mdunda 03 2004
Examples:
ExampleAbsoluteOrientation.cpp, ExampleAutoCalib.cpp, ExampleBlobDetectorLevelSet.cpp, ExampleCannyEdge.cpp, ExampleColorNCC.cpp, ExampleMDCamToShm.cpp, ExampleMultisampleBlit.cpp, ExampleParam.cpp, ExamplePlainPerPixelProcessing.cpp, ExampleProjectionMapping.cpp, ExamplePyramidImage.cpp, ParamGUISample1.cpp, ParamGUISample2.cpp, ParamGUISample3.cpp, and ProjectionError.cpp.

Definition at line 276 of file Param.cpp.

References BIAS::ParamTypeInt::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeInt::max_, BIAS::ParamTypeInt::min_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeInt::value_, and BIAS::ParamTypeBase::WriteToFile_.

Referenced by BIAS::MatchDataBase::_AddParameter(), BIAS::GenSynthMatches::_AddParameter(), BIAS::GenSynthMatchesRig::AddParameters_(), CheckerBoardExtractFrame::Init(), and BIAS::ClickCornersFrame::Init().

std::string * Param::AddParamString ( const std::string &  name,
const std::string &  help,
std::string  deflt = "",
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]
BIAS::Vector< double > * Param::AddParamVecDbl ( const std::string &  name,
const std::string &  help,
const BIAS::Vector< double > &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of double must be given as default vector!

Examples:
ExampleCameraPath2Vrml.cpp, ExampleColorNCC.cpp, ExampleParam.cpp, and ExampleProjectionMapping.cpp.

Definition at line 378 of file Param.cpp.

References BIAS::ParamTypeVecDbl::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeVecDbl::value_, and BIAS::ParamTypeBase::WriteToFile_.

Referenced by BIAS::GenSynthMatches::_AddParameter().

BIAS::Vector< double > * Param::AddParamVecDbl ( const std::string &  name,
const std::string &  help,
const std::string &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

The same as above, but default is given by a string, syntax is as at command line "v_0 v_1 v_2", don't set empty string, cause the length is determined also by the number of values.

Author:
Daniel Grest, July 2005

Definition at line 401 of file Param.cpp.

References TNT::Vector< T >::newsize().

BIAS::Vector< int > * Param::AddParamVecInt ( const std::string &  name,
const std::string &  help,
const BIAS::Vector< int > &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

Add a parameter that expects a string on command line like "<value0> <value1> <value2> ..."
A vector of integer must be given a default vector!

Examples:
ExampleBlobDetectorLevelSet.cpp, and ExampleParam.cpp.

Definition at line 423 of file Param.cpp.

References BIAS::ParamTypeVecInt::default_, BIAS::ParamTypeBase::Group_, BIAS::ParamTypeBase::Help_, BIAS::ParamTypeBase::Name_, BIAS::ParamTypeBase::ShortCmd_, BIAS::ParamTypeVecInt::value_, and BIAS::ParamTypeBase::WriteToFile_.

BIAS::Vector< int > * Param::AddParamVecInt ( const std::string &  name,
const std::string &  help,
const std::string &  deflt,
char  cmdshort = 0,
int  Group = GRP_NOSHOW 
) [inherited]

The same as other AddParamVecInt(), but default is given by a string, syntax is as at command line "v_0 v_1 v_2".

Don't set empty string, cause the length is determined also by the number of values

Author:
Daniel Grest, July 2005

Definition at line 446 of file Param.cpp.

References TNT::Vector< T >::newsize().

void ShowCamWxFrame::AddUEyeCameraToMenu ( int  camindex,
bool  fromFile 
) [protected]

Adds a ueye camera to the menu.

Definition at line 2391 of file ShowCamWxFrame.cpp.

References OnChangeActivate(), OnChangeTrigger(), and OnChangeVideoMode().

void ShowCamWxFrame::AddWebcamToMenu ( std::string  name,
int  camindex,
bool  fromFile 
) [protected]

Adds a v4l or DShow camera to the menu.

Definition at line 2468 of file ShowCamWxFrame.cpp.

References OnChangeActivate(), OnChangeDeviceChannel(), and OnChangeTrigger().

bool Param::CheckParam ( const std::string &  name) [inherited]

Check if parameter has already been added.

Examples:
ExampleColorNCC.cpp.

Definition at line 527 of file Param.cpp.

Referenced by BIAS::MatchDataBase::_AddParameter(), BIAS::GenSynthMatches::_AddParameter(), and BIAS::GenSynthMatchesRig::AddParameters_().

void ShowCamWxFrame::CleanUpAndExit ( ) [protected]

called on end to close cams and exit

Definition at line 1488 of file ShowCamWxFrame.cpp.

void Param::ClearAllParams ( ) [inherited]

empties internal datastructures

Definition at line 1899 of file Param.cpp.

int ShowCamWxFrame::CloseDevice ( int  camindex) [protected]

try to close the device with index camindex

Definition at line 928 of file ShowCamWxFrame.cpp.

References BIAS::ImageBase::CM_invalid.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( ) [inline, protected, inherited]

returns the next available debuglevel

Author:
woelk 09/2006

Definition at line 522 of file Debug.hh.

void ShowCamWxFrame::CreateCameraMenu ( )

Creates the menu for the available cameras.

Definition at line 1181 of file ShowCamWxFrame.cpp.

int ShowCamWxFrame::CreateGrabThreadForCamera_ ( int  cameraIndex) [protected]

Creates the thread for grabbing images for a camera.

Definition at line 3219 of file ShowCamWxFrame.cpp.

int ShowCamWxFrame::CreateImageSaveThreadForCamera_ ( int  cameraIndex) [protected]

Creates the thread for saving images for a camera.

Definition at line 3304 of file ShowCamWxFrame.cpp.

References BIAS::FileHandling::LeadingZeroString().

int ShowCamWxFrame::CreateMasterThread_ ( ) [protected]

Creates the master thread for handling cameras.

Definition at line 3188 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::CreateMenu ( )

Creates the menu of the main window.

Definition at line 1094 of file ShowCamWxFrame.cpp.

Referenced by ShowCamWxApp::OnInit().

bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const [inline, inherited]

Definition at line 351 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const [inline, inherited]
void BIAS::Param::DisableDestructorWarning ( ) [inline, inherited]

Uses this just before end of your program to avoid error from destructor.

Author:
evers
Examples:
ExampleColorNCC.cpp, ExampleCylinderMapping.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, ExampleMDCamToShm.cpp, ExamplePyramidImage.cpp, and ExampleTrackerBase.cpp.

Definition at line 513 of file Param.hh.

int BIAS::Debug::GetDebugLevel ( ) const [inline, inherited]
std::ostream& BIAS::Debug::GetDebugStream ( ) const [inline, inherited]

Definition at line 406 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const [inline, inherited]

Definition at line 415 of file Debug.hh.

ParamGUIDialog * ParamGUI::GetDialog ( wxWindow parent,
const wxString &  title,
bool  bChancelButton = true 
) [inherited]

Builds up a wxDialog with a notebook embedded in it.

Returns:
a pointer to the new dialog NULL on error
Author:
evers 2004-01

Definition at line 138 of file ParamGUI.cpp.

wxFrame * ParamGUI::GetFrame ( wxWindow parent) [inherited]

Builds up a standalone wxFrame with a notebook embedded in it.

Returns:
a pointer to the new frame NULL on error
Author:
mdunda 03 2004
Examples:
ParamGUISample2.cpp.

Definition at line 119 of file ParamGUI.cpp.

References BIAS::ParamGUI::GetNotebook().

int Param::GetFreeGroupID ( ) [inherited]
static long int BIAS::Debug::GetGlobalDebugLevel ( ) [inline, static, inherited]

Definition at line 432 of file Debug.hh.

int Param::GetGroupID ( const std::string &  name) [inherited]

returns group id of parameter with name

Author:
woelk

Definition at line 1430 of file Param.cpp.

Referenced by BIAS::MatchDataBase::_AddParameter(), BIAS::GenSynthMatches::_AddParameter(), and BIAS::GenSynthMatchesRig::AddParameters_().

int Param::GetGroupIDForGroupName ( const std::string &  name) [inherited]
Author:
evers

Definition at line 1440 of file Param.cpp.

std::string Param::GetGroupName ( const int  group_id) [inherited]

gets the name of a group

Author:
woelk

Definition at line 1465 of file Param.cpp.

Referenced by BIAS::ParamGUI::GetNotebook().

wxNotebook * ParamGUI::GetNotebook ( wxWindow parent) [inherited]

Builds up a wxNotebook with each parameter group on one page.

Group-ID -1 (GRP_NOSHOW) will be ignored.

Returns:
a pointer to the new notebook NULL on error
Author:
mdunda 03 2004 now GroupNames are shown in tabs if all Groupnames are set ischiller 08.09.04

Definition at line 84 of file ParamGUI.cpp.

References BIAS::Param::GetGroupName(), BIAS::ParamGUI::GetPanel(), BIAS::Param::GroupNames_, and BIAS::Param::UniqueSortedGroups().

Referenced by BIAS::ParamGUI::GetFrame(), and BIAS::ParamGUIDialog::ParamGUIDialog().

wxPanel * ParamGUI::GetPanel ( wxWindow parent,
int  GroupID = GRP_ALL 
) [inherited]
bool * Param::GetParamBool ( const std::string &  name) const [inherited]
bool * Param::GetParamBoolByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 576 of file Param.cpp.

double * Param::GetParamDouble ( const std::string &  name) const [inherited]
double * Param::GetParamDoubleByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 555 of file Param.cpp.

int * Param::GetParamEnum ( const std::string &  name) const [inherited]
Examples:
ExampleCylinderMapping.cpp.

Definition at line 712 of file Param.cpp.

int * Param::GetParamInt ( const std::string &  name) const [inherited]
int * Param::GetParamIntByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 534 of file Param.cpp.

const std::map< const std::string, BIAS::ParamTypeBase * > & Param::GetParamMap ( ) const [protected, inherited]

Definition at line 1891 of file Param.cpp.

std::map< const std::string, BIAS::ParamTypeBase * > & Param::GetParamMap ( ) [protected, inherited]

Definition at line 1885 of file Param.cpp.

Referenced by BIAS::ParamGUI::GetPanel().

std::string * Param::GetParamString ( const std::string &  name) const [inherited]
std::string * Param::GetParamStringByIndex ( const int  i) const [inherited]

Get a Param-value by Index.

Running-time is O(n). Grouping and other features are unsupported by this function.

Author:
Stefan Goerrissen, 09/2008

Definition at line 597 of file Param.cpp.

BIAS::Vector< double > * Param::GetParamVecDbl ( const std::string &  name) const [inherited]
BIAS::Vector< int > * Param::GetParamVecInt ( const std::string &  name) const [inherited]
Examples:
ExampleBlobDetectorLevelSet.cpp.

Definition at line 696 of file Param.cpp.

int Param::GetSizeOfLongestParamName ( ) [inherited]

returns the size of the longest param name not marked as enhanced or hidden

Author:
woelk 10/2004

Definition at line 1502 of file Param.cpp.

int Param::GetSizeOfLongestParamValueString ( ) [inherited]

returns the size of the longest param value string not marked as enhanced or hidden

Author:
woelk 10/2004

Definition at line 1516 of file Param.cpp.

bool BIAS::Param::GetWriteFlag ( ) [inline, inherited]

Definition at line 383 of file Param.hh.

void ShowCamWxFrame::GrabSingleImageUnthreadedFromCamera_ ( int  cameraIndex) [protected]

Grabs an image frmo a camera without using threads.

Definition at line 3144 of file ShowCamWxFrame.cpp.

References BIAS::VideoSource_SwissRanger::GrabSingle().

void ShowCamWxFrame::InitCamera ( int  camindex) [protected]
void ShowCamWxFrame::InitCameras ( )

Initialize cameras with param file.

Only call after InitParams().

Definition at line 499 of file ShowCamWxFrame.cpp.

References BIAS::ShowCamWxVideoSourceFactory::NONE.

Referenced by ShowCamWxApp::OnInit().

void ShowCamWxFrame::InitCombinedImage ( ) [protected]
void ShowCamWxFrame::InitParams ( int &  argc,
char *  argv[] 
)

Initializes all paramaters for param file.

Definition at line 356 of file ShowCamWxFrame.cpp.

Referenced by ShowCamWxApp::OnInit().

bool Param::IsUsedGroupID ( const int  group_id) [inherited]

returns if the group id is used

Author:
woelk

Definition at line 1496 of file Param.cpp.

Referenced by BIAS::GenSynthMatches::_AddParameter(), and BIAS::GenSynthMatchesRig::AddParameters_().

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const [inline, inherited]

looks up a debuglevel in the internal map, returns 0 if not found

Author:
woelk 09/2006

Definition at line 455 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name) [inline, inherited]
void ShowCamWxFrame::OnAbout ( wxCommandEvent &  event) [protected]

Definition at line 3009 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnChangeActivate ( wxCommandEvent &  event) [protected]

Definition at line 2825 of file ShowCamWxFrame.cpp.

Referenced by AddIEEECameraToMenu(), AddUEyeCameraToMenu(), and AddWebcamToMenu().

void ShowCamWxFrame::OnChangeDeviceChannel ( wxCommandEvent &  event) [protected]

Definition at line 2675 of file ShowCamWxFrame.cpp.

Referenced by AddWebcamToMenu().

void ShowCamWxFrame::OnChangeFirewireB ( wxCommandEvent &  event) [protected]

Definition at line 2839 of file ShowCamWxFrame.cpp.

Referenced by AddIEEECameraToMenu().

void ShowCamWxFrame::OnChangeTrigger ( wxCommandEvent &  event) [protected]

Definition at line 2862 of file ShowCamWxFrame.cpp.

Referenced by AddIEEECameraToMenu(), AddUEyeCameraToMenu(), and AddWebcamToMenu().

void ShowCamWxFrame::OnChangeVideoMode ( wxCommandEvent &  event) [protected]

Definition at line 2708 of file ShowCamWxFrame.cpp.

Referenced by AddIEEECameraToMenu(), and AddUEyeCameraToMenu().

void ShowCamWxFrame::OnClickCamerasListBox ( wxCommandEvent &  event) [protected]

Definition at line 1650 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnFindIEEE1394 ( wxCommandEvent &  event) [protected]

Definition at line 1756 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnFindKinect ( wxCommandEvent &  event) [protected]

Definition at line 2168 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnFindOpenNI ( wxCommandEvent &  event) [protected]

Definition at line 2193 of file ShowCamWxFrame.cpp.

References BIAS::VideoSource_OpenNI::GetNumDevices().

void ShowCamWxFrame::OnFindPMDTec ( wxCommandEvent &  event) [protected]
void ShowCamWxFrame::OnFindPMDZess ( wxCommandEvent &  event) [protected]
void ShowCamWxFrame::OnFindSwissRanger ( wxCommandEvent &  event) [protected]

Definition at line 2130 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnFindUEye ( wxCommandEvent &  event) [protected]
void ShowCamWxFrame::OnFindWebcams ( wxCommandEvent &  event) [protected]
void BIAS::ShowCamWxFrame::OnFit ( wxCommandEvent &  event) [protected]
void ShowCamWxFrame::OnGrab ( wxCommandEvent &  event) [protected]

Definition at line 1582 of file ShowCamWxFrame.cpp.

References BIAS::FileHandling::LeadingZeroString().

void ShowCamWxFrame::OnGrabContinuous ( wxCommandEvent &  event) [protected]

Definition at line 1614 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnGrabToStream ( wxCommandEvent &  event) [protected]

Definition at line 1632 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnHideCamerasListBox ( wxCommandEvent &  event) [protected]

Definition at line 1657 of file ShowCamWxFrame.cpp.

void BIAS::ShowCamWxFrame::OnKeepScrollPosition ( wxCommandEvent &  event) [protected]
void ShowCamWxFrame::OnKey ( wxKeyEvent &  event) [protected]

Definition at line 2982 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnOpenDPController ( wxCommandEvent &  event) [protected]

Definition at line 450 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnOpenFlirController ( wxCommandEvent &  event) [protected]

Definition at line 1728 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnOpenViscaController ( wxCommandEvent &  event) [protected]

Definition at line 1740 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnQuit ( wxCommandEvent &  event) [protected]

Definition at line 138 of file GuiWX.cpp.

References BIAS::GuiWXFrame::Timer_.

void ShowCamWxFrame::OnSaveParameters ( wxCommandEvent &  event) [protected]

Definition at line 1463 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnShowCamerasListBox ( wxCommandEvent &  event) [protected]

Definition at line 1662 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnShowController ( wxCommandEvent &  event) [protected]
void ShowCamWxFrame::OnShowImage ( wxCommandEvent &  event) [protected]

Definition at line 1670 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnShowParameters ( wxCommandEvent &  event) [protected]

Definition at line 3002 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnTimer ( wxTimerEvent &  event) [protected]

Definition at line 1708 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::OnWindowClose ( wxCloseEvent &  event) [protected]

Definition at line 1478 of file ShowCamWxFrame.cpp.

int ShowCamWxFrame::OpenDevice ( int  camindex) [protected]
void ShowCamWxFrame::OpenDevices ( )

Tries to open all specified camera devices.

Only call after cameras are initialized.

Definition at line 1044 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::ParseColorModels ( ) [protected]
int Param::ParseCommandLine ( int &  argc,
char *  argv[] 
) [inherited]

scan command line arguments for valid parameters

argv is reordered according to getopt() all no recognized arguments are at the end. Return value is optind from getopt(), the index of the next not recognized argument. Sometimes, the function however returns negative values. ?

Todo:
document concept of return value of ParseCommandLine Reads parameter from file if argument --readconfig is given.
Author:
evers

this delete let the program bail out. but it realy should be deleted

Examples:
ExampleAbsoluteOrientation.cpp, ExampleBlobDetectorLevelSet.cpp, ExampleCalcRelativeTransform.cpp, ExampleCameraPath2Vrml.cpp, ExampleColorNCC.cpp, ExampleCylinderMapping.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, ExampleLogPolarMapping.cpp, ExampleMDCamToShm.cpp, ExampleParam.cpp, ExampleProjectionMapping.cpp, ExamplePyramidImage.cpp, ExampleRectification.cpp, ExampleTFT.cpp, ExampleVideoServer.cpp, ParamGUISample2.cpp, and ProjectionError.cpp.

Definition at line 1028 of file Param.cpp.

References option::has_arg, and option::name.

Referenced by BIAS::IOUtils::ParseCommandLineEvalHelp().

int Param::ParseListFile ( const std::string &  ListFileName,
std::vector< std::string > &  LinesInFile 
) [static, inherited]

Extracts lines from passed file.

The specified file is expected to contain a list of entries. Those entries are assumed to be seperated by newlines.

Parameters:
ListFileNameRoutine tries to open file with this name.
LinesInFileresult of line extraction.
Returns:
-1 if file could not be opened.
0 all good.
Examples:
ExampleMixtureOfGaussians.cpp.

Definition at line 1853 of file Param.cpp.

Referenced by CheckerBoardExtractFrame::Init(), BIAS::ClickCornersFrame::Init(), BIAS::IOUtils::LoadImageList(), BIAS::BVWXMainFrame::LoadImages(), and BIAS::ExampleMixtureOfGaussians::OnInit().

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const [inline, inherited]

Definition at line 384 of file Debug.hh.

int Param::ReadParameter ( const std::string &  filename) [inherited]

read values for parameters from file

Examples:
ExampleAutoCalib.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, and ExampleTFT.cpp.

Definition at line 1219 of file Param.cpp.

int Param::ReadParameterXML ( const std::string &  filename) [inherited]
int Param::RegisterCallbackObject ( const std::string &  name,
ParamCallbackInterface obj 
) [inherited]
Author:
evers
Examples:
ParamGUISample1.cpp, and ParamGUISample3.cpp.

Definition at line 1813 of file Param.cpp.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv) [inline, inherited]

Definition at line 370 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 377 of file Debug.hh.

void ShowCamWxFrame::SaveImageUnthreaded_ ( int  cameraIndex) [protected]
void ShowCamWxFrame::SelectAndShowCameraImage_ ( ) [protected]
int ShowCamWxFrame::SelectedModeFromMenu ( int  camindex) [protected]

Selects a mode from the menu of multiple modes are offered for a camera, used e.g.

for IEEE1394 cameras

Definition at line 1057 of file ShowCamWxFrame.cpp.

void BIAS::Debug::SetDebugLevel ( const long int  lv) [inline, inherited]
void BIAS::Debug::SetDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 326 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os) [inline, inherited]

Definition at line 399 of file Debug.hh.

void Param::SetDefaults ( ) [inherited]

sets all entries to their initially (AddParam) given default values

Definition at line 1806 of file Param.cpp.

int Param::SetEnhancedFlag ( const std::string &  name,
bool  enhanced 
) [inherited]

if a parametr is marked as enhanced, it is hidden from the naive user

Definition at line 957 of file Param.cpp.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev) [inline, static, inherited]

Definition at line 425 of file Debug.hh.

int Param::SetGroupName ( const int  group_id,
const std::string &  name 
) [inherited]
int Param::SetHiddenFlag ( const std::string &  name,
bool  hidden 
) [inherited]

if a parametr is marked as hidden, it is obsolete and hidden for all users, use this for parameters overwritten by caller class

Definition at line 970 of file Param.cpp.

bool * Param::SetParamBool ( const std::string &  name,
const bool &  value 
) [inherited]

Definition at line 757 of file Param.cpp.

double * Param::SetParamDouble ( const std::string &  name,
const double &  value 
) [inherited]

Definition at line 802 of file Param.cpp.

int * Param::SetParamEnum ( const std::string &  name,
const std::string &  value 
) [inherited]

set the enum to the ID corresponding to the string 'value'

Definition at line 890 of file Param.cpp.

int * Param::SetParamEnum ( const std::string &  name,
const int &  value 
) [inherited]

set the enum to the ID 'value'

Definition at line 917 of file Param.cpp.

int Param::SetParameterWriteToFile ( const std::string &  name,
bool  writeToFile 
) [inherited]

Definition at line 944 of file Param.cpp.

int * Param::SetParamInt ( const std::string &  name,
const int &  value 
) [inherited]

Definition at line 729 of file Param.cpp.

std::string * Param::SetParamString ( const std::string &  name,
const std::string &  value 
) [inherited]

Definition at line 779 of file Param.cpp.

BIAS::Vector< double > * Param::SetParamVecDbl ( const std::string &  name,
const BIAS::Vector< double > &  value 
) [inherited]

Definition at line 830 of file Param.cpp.

BIAS::Vector< int > * Param::SetParamVecInt ( const std::string &  name,
const BIAS::Vector< int > &  value 
) [inherited]

Definition at line 860 of file Param.cpp.

int Param::SetRangeInt ( const std::string &  name,
const int  min,
const int  max 
) [virtual, inherited]

Set [Min,Max] as new range, especially usefull in derived class PramGUI.

Definition at line 1825 of file Param.cpp.

References BIAS::ParamTypeInt::max_, and BIAS::ParamTypeInt::min_.

int Param::SetShortCommand ( const std::string &  name,
const char  cmd 
) [inherited]

Add a short commandline switch to an existing parameter.

Useful for readconfig/writeconfig.

Author:
evers
Examples:
ExampleVideoServer.cpp.

Definition at line 1841 of file Param.cpp.

void BIAS::Param::SetWriteOptions ( bool  indent,
bool  comments,
bool  enhanced 
) [inline, inherited]
void Param::ShowData ( std::ostream &  os = std::cout,
int  grp = GRP_ALL,
bool  showenhanced = true 
) [inherited]

print all data in group grp including current values to os if grp = GRP_ALL, print all values if showenhanced = false, parameters marked as enhanced are not shown

Examples:
ExampleAutoCalib.cpp, and ExampleParam.cpp.

Definition at line 121 of file Param.cpp.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const [inline, inherited]

prints all internally known debuglevels

Author:
woelk 09/2006

Definition at line 497 of file Debug.hh.

int ShowCamWxFrame::ShowFormat7Selector ( int  camindex,
dc1394video_mode_t  mode 
)

Shows the IEEE1394 Format7 selector frame.

Definition at line 2613 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::ShowParamGUI ( )

Shows the parameter GUI.

Definition at line 3079 of file ShowCamWxFrame.cpp.

void ShowCamWxFrame::StartSavingImagesToDisk ( )

Starts the saving from all images to disk from all activated cameras.

Definition at line 1268 of file ShowCamWxFrame.cpp.

References BIAS::FileHandling::LeadingZeroString().

void ShowCamWxFrame::StopSavingImagesToDisk ( )

Stops the saving from all images to disk from all activated cameras.

Definition at line 1245 of file ShowCamWxFrame.cpp.

vector< int > Param::UniqueSortedGroups ( ) [inherited]

Returns a vector of all group IDs (unique) in ascending order.

Only parameters are with WriteToFile_ = true are considered.

Author:
woelk 03 2004

Definition at line 1483 of file Param.cpp.

Referenced by BIAS::ParamGUI::GetNotebook().

int Param::UpdateParameter ( int &  argc,
char *  argv[],
const std::string &  default_filename 
) [inherited]

update all arguments from command line and parameter file 1.

reads parameter from default file 2. if --readconfig is given on commandline, reads parameter from this file 3. evaluates parameter given on command line

Command line arguments take precedence over arguments from parameter file. Parameter from parameter file specified with --readconfig=fname take precedencor over parameter read from default_filename. If no parameterfile is found, the defaults are written to default_name.

Author:
woelk 09/2004
Examples:
ExampleTrackerBase.cpp.

Definition at line 985 of file Param.cpp.

Referenced by CheckerBoardExtractFrame::Init(), and BIAS::ClickCornersFrame::Init().

void Param::Usage ( std::ostream &  os = std::cout) [inherited]
int Param::WriteParameter ( const std::string &  filename) [inherited]

store complete set of parameter in file if write_comments is set, alo the help strings are written to the file if show_enhanced is set, also parameters marked as enhanced are written

Author:
??
Examples:
ExampleAutoCalib.cpp, ExampleGenSynthMatches.cpp, ExampleGenSynthMatchesRig.cpp, and ExampleTFT.cpp.

Definition at line 1531 of file Param.cpp.

int Param::WriteParameterXML ( const std::string &  filename) [inherited]
int Param::WriteRunMe ( const std::string &  filename) [inherited]

writes complete command line including program name and unknown command line options, no defaults, no params read from file

Definition at line 1773 of file Param.cpp.


Member Data Documentation

long int BIAS::Debug::_liDebugLevel [protected, inherited]

Definition at line 511 of file Debug.hh.

Referenced by BIAS::ImageBase::operator=(), and BIAS::Debug::operator=().

long int BIAS::Debug::_liNextDebugLevel [protected, inherited]

new concept, debuglevel are managed here in the debug class

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel [protected, inherited]

Definition at line 518 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream [static, protected, inherited]

Definition at line 512 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

Definition at line 338 of file ShowCamWxFrame.hh.

std::vector<std::string> BIAS::Param::ArgV_ [protected, inherited]

Definition at line 547 of file Param.hh.

Definition at line 348 of file ShowCamWxFrame.hh.

Definition at line 349 of file ShowCamWxFrame.hh.

Definition at line 352 of file ShowCamWxFrame.hh.

std::vector<wxMutex*> BIAS::ShowCamWxFrame::BufferAccess_ [protected]

Definition at line 397 of file ShowCamWxFrame.hh.

Definition at line 350 of file ShowCamWxFrame.hh.

std::vector<bool> BIAS::ShowCamWxFrame::CameraActive_ [protected]

Definition at line 401 of file ShowCamWxFrame.hh.

std::vector<bool> BIAS::ShowCamWxFrame::CameraInitialized_ [protected]

Definition at line 402 of file ShowCamWxFrame.hh.

wxListBox* BIAS::ShowCamWxFrame::cameraListBox_ [protected]

Definition at line 418 of file ShowCamWxFrame.hh.

Definition at line 417 of file ShowCamWxFrame.hh.

wxMenu* BIAS::ShowCamWxFrame::CameraMenu_ [protected]

Definition at line 428 of file ShowCamWxFrame.hh.

std::vector<std::string> BIAS::ShowCamWxFrame::cameraNames_ [protected]

Definition at line 435 of file ShowCamWxFrame.hh.

Definition at line 323 of file ShowCamWxFrame.hh.

std::vector<BIAS::Camera<unsigned char>* > BIAS::ShowCamWxFrame::CamImg_ [protected]

Definition at line 360 of file ShowCamWxFrame.hh.

Definition at line 366 of file ShowCamWxFrame.hh.

std::vector<BIAS::Camera<unsigned char>* > BIAS::ShowCamWxFrame::CamImgMiddle_ [protected]

Definition at line 369 of file ShowCamWxFrame.hh.

std::vector<BIAS::Camera<float>* > BIAS::ShowCamWxFrame::CamImgPMDAmp_ [protected]

Definition at line 363 of file ShowCamWxFrame.hh.

std::vector<BIAS::Camera<float>* > BIAS::ShowCamWxFrame::CamImgPMDDepth_ [protected]

Definition at line 361 of file ShowCamWxFrame.hh.

std::vector<BIAS::Camera<float>* > BIAS::ShowCamWxFrame::CamImgPMDInt_ [protected]

Definition at line 362 of file ShowCamWxFrame.hh.

std::vector<BIAS::Camera<unsigned char>* > BIAS::ShowCamWxFrame::CamImgRight_ [protected]

Definition at line 370 of file ShowCamWxFrame.hh.

Definition at line 344 of file ShowCamWxFrame.hh.

std::vector<wxCondition*> BIAS::ShowCamWxFrame::ClientsCondition_ [protected]

Definition at line 375 of file ShowCamWxFrame.hh.

std::vector<wxMutex*> BIAS::ShowCamWxFrame::ClientsMutex_ [protected]

Definition at line 377 of file ShowCamWxFrame.hh.

Definition at line 324 of file ShowCamWxFrame.hh.

std::string BIAS::ShowCamWxFrame::currentSaveDir_ [protected]

Definition at line 354 of file ShowCamWxFrame.hh.

Definition at line 355 of file ShowCamWxFrame.hh.

unsigned int BIAS::ShowCamWxFrame::dDirIndex_ [protected]

Definition at line 332 of file ShowCamWxFrame.hh.

Definition at line 336 of file ShowCamWxFrame.hh.

bool BIAS::Param::DestructorWarning_ [protected, inherited]

Definition at line 550 of file Param.hh.

std::vector<int> BIAS::ShowCamWxFrame::DeviceChannel_ [protected]

Definition at line 412 of file ShowCamWxFrame.hh.

std::vector<std::vector<std::string> > BIAS::ShowCamWxFrame::DeviceChannelNames_ [protected]

Definition at line 413 of file ShowCamWxFrame.hh.

unsigned int BIAS::ShowCamWxFrame::dSingleDirIndex_ [protected]

Definition at line 333 of file ShowCamWxFrame.hh.

Definition at line 351 of file ShowCamWxFrame.hh.

Definition at line 339 of file ShowCamWxFrame.hh.

std::vector<int> BIAS::ShowCamWxFrame::Format7BpP_ [protected]

Definition at line 409 of file ShowCamWxFrame.hh.

std::vector<int> BIAS::ShowCamWxFrame::Format7ColorMode_ [protected]

Definition at line 410 of file ShowCamWxFrame.hh.

Definition at line 432 of file ShowCamWxFrame.hh.

std::vector<BIAS::Vector2<int> > BIAS::ShowCamWxFrame::Format7LeftTop_ [protected]

Definition at line 407 of file ShowCamWxFrame.hh.

Definition at line 408 of file ShowCamWxFrame.hh.

unsigned int BIAS::ShowCamWxFrame::FrameCounter_ [protected]

Definition at line 327 of file ShowCamWxFrame.hh.

long int BIAS::Debug::GlobalDebugLevel = 0 [static, protected, inherited]

Definition at line 514 of file Debug.hh.

unsigned int BIAS::ShowCamWxFrame::GrabCounter_ [protected]

Definition at line 328 of file ShowCamWxFrame.hh.

Definition at line 384 of file ShowCamWxFrame.hh.

Definition at line 381 of file ShowCamWxFrame.hh.

std::vector<std::string> BIAS::Param::GroupNames_ [protected, inherited]

Definition at line 548 of file Param.hh.

Referenced by BIAS::ParamGUI::GetNotebook().

Definition at line 415 of file ShowCamWxFrame.hh.

Definition at line 431 of file ShowCamWxFrame.hh.

std::vector<std::vector<Camera<unsigned char>* >* > BIAS::ShowCamWxFrame::ImageBuffer_ [protected]

Definition at line 386 of file ShowCamWxFrame.hh.

std::vector<std::vector<Camera<unsigned char>* >* > BIAS::ShowCamWxFrame::ImageBufferMiddle_ [protected]

Definition at line 387 of file ShowCamWxFrame.hh.

std::vector<std::vector<Camera<float>* >* > BIAS::ShowCamWxFrame::ImageBufferPMDAmp_ [protected]

Definition at line 392 of file ShowCamWxFrame.hh.

std::vector<std::vector<Camera<float>* >* > BIAS::ShowCamWxFrame::ImageBufferPMDDepth_ [protected]

Definition at line 391 of file ShowCamWxFrame.hh.

std::vector<std::vector<Camera<float>* >* > BIAS::ShowCamWxFrame::ImageBufferPMDInt_ [protected]

Definition at line 393 of file ShowCamWxFrame.hh.

std::vector<std::vector<Camera<unsigned char>* >* > BIAS::ShowCamWxFrame::ImageBufferRight_ [protected]

Definition at line 388 of file ShowCamWxFrame.hh.

Definition at line 345 of file ShowCamWxFrame.hh.

Definition at line 346 of file ShowCamWxFrame.hh.

Definition at line 340 of file ShowCamWxFrame.hh.

unsigned int BIAS::ShowCamWxFrame::LastHeight_ [protected]

Definition at line 329 of file ShowCamWxFrame.hh.

unsigned int BIAS::ShowCamWxFrame::LastWidth_ [protected]

Definition at line 329 of file ShowCamWxFrame.hh.

struct option* BIAS::Param::longopts [protected, inherited]

Definition at line 549 of file Param.hh.

wxMenu* BIAS::ShowCamWxFrame::menuShow [protected]

Definition at line 427 of file ShowCamWxFrame.hh.

Definition at line 335 of file ShowCamWxFrame.hh.

Definition at line 341 of file ShowCamWxFrame.hh.

Definition at line 337 of file ShowCamWxFrame.hh.

Definition at line 347 of file ShowCamWxFrame.hh.

std::string* BIAS::ShowCamWxFrame::ParamBitFile_[NUMBER_CAMERAS] [protected]

Definition at line 308 of file ShowCamWxFrame.hh.

int* BIAS::ShowCamWxFrame::ParamCameras_[NUMBER_CAMERAS] [protected]

Definition at line 301 of file ShowCamWxFrame.hh.

int* BIAS::ShowCamWxFrame::ParamColorModel_[NUMBER_CAMERAS] [protected]

Definition at line 309 of file ShowCamWxFrame.hh.

std::string* BIAS::ShowCamWxFrame::ParamDevice_[NUMBER_CAMERAS] [protected]

Definition at line 307 of file ShowCamWxFrame.hh.

int* BIAS::ShowCamWxFrame::ParamDown_[NUMBER_CAMERAS] [protected]

Definition at line 304 of file ShowCamWxFrame.hh.

double* BIAS::ShowCamWxFrame::ParamFPS_[NUMBER_CAMERAS] [protected]

Definition at line 310 of file ShowCamWxFrame.hh.

wxFrame* BIAS::ShowCamWxFrame::paramFrame_ [protected]

Definition at line 425 of file ShowCamWxFrame.hh.

int* BIAS::ShowCamWxFrame::ParamHeight_[NUMBER_CAMERAS] [protected]

Definition at line 303 of file ShowCamWxFrame.hh.

std::string* BIAS::ShowCamWxFrame::ParamIP_[NUMBER_CAMERAS] [protected]

Definition at line 306 of file ShowCamWxFrame.hh.

wxNotebook* BIAS::ShowCamWxFrame::paramNotebook_ [protected]

Definition at line 426 of file ShowCamWxFrame.hh.

int* BIAS::ShowCamWxFrame::ParamPort_[NUMBER_CAMERAS] [protected]

Definition at line 305 of file ShowCamWxFrame.hh.

int* BIAS::ShowCamWxFrame::ParamWidth_[NUMBER_CAMERAS] [protected]

Definition at line 302 of file ShowCamWxFrame.hh.

Definition at line 419 of file ShowCamWxFrame.hh.

Definition at line 419 of file ShowCamWxFrame.hh.

wxButton* BIAS::ShowCamWxFrame::pButtonGrab [protected]

Definition at line 419 of file ShowCamWxFrame.hh.

Definition at line 420 of file ShowCamWxFrame.hh.

wxButton * BIAS::ShowCamWxFrame::pButtonPMDTec [protected]

Definition at line 420 of file ShowCamWxFrame.hh.

wxButton * BIAS::ShowCamWxFrame::pButtonSR [protected]

Definition at line 420 of file ShowCamWxFrame.hh.

wxButton * BIAS::ShowCamWxFrame::pButtonStream [protected]

Definition at line 419 of file ShowCamWxFrame.hh.

wxButton * BIAS::ShowCamWxFrame::pButtonWebCams [protected]

Definition at line 420 of file ShowCamWxFrame.hh.

wxCheckBox* BIAS::ShowCamWxFrame::pCheckBoxFit [protected]

Definition at line 421 of file ShowCamWxFrame.hh.

Definition at line 421 of file ShowCamWxFrame.hh.

std::string BIAS::ShowCamWxFrame::procPlugin_ [protected]

Definition at line 357 of file ShowCamWxFrame.hh.

std::vector<unsigned int> BIAS::ShowCamWxFrame::ReadIndex_ [protected]

Definition at line 396 of file ShowCamWxFrame.hh.

Definition at line 382 of file ShowCamWxFrame.hh.

std::vector<float> BIAS::ShowCamWxFrame::SelectedFps_ [protected]

Definition at line 406 of file ShowCamWxFrame.hh.

std::vector<wxCondition*> BIAS::ShowCamWxFrame::ServerCondition_ [protected]

Definition at line 374 of file ShowCamWxFrame.hh.

std::vector<wxMutex*> BIAS::ShowCamWxFrame::ServerMutex_ [protected]

Definition at line 376 of file ShowCamWxFrame.hh.

std::vector<bool> BIAS::ShowCamWxFrame::SetFirewireB_ [protected]

Definition at line 403 of file ShowCamWxFrame.hh.

std::vector<bool> BIAS::ShowCamWxFrame::SetTrigger_ [protected]

Definition at line 404 of file ShowCamWxFrame.hh.

std::vector<bool> BIAS::ShowCamWxFrame::SetUserMode_ [protected]

Definition at line 405 of file ShowCamWxFrame.hh.

BIAS::Camera<unsigned char> BIAS::ShowCamWxFrame::ShowImage_ [protected]

Definition at line 399 of file ShowCamWxFrame.hh.

unsigned int BIAS::ShowCamWxFrame::ShowXB3_ [protected]

Definition at line 331 of file ShowCamWxFrame.hh.

std::string BIAS::ShowCamWxFrame::sourcePlugin_ [protected]

Definition at line 356 of file ShowCamWxFrame.hh.

wxSplitterWindow* BIAS::ShowCamWxFrame::splitterWindow_ [protected]

Definition at line 416 of file ShowCamWxFrame.hh.

Definition at line 424 of file ShowCamWxFrame.hh.

Definition at line 422 of file ShowCamWxFrame.hh.

std::vector<bool> BIAS::ShowCamWxFrame::ThreadInited_ [protected]

Definition at line 379 of file ShowCamWxFrame.hh.

wxTimer BIAS::ShowCamWxFrame::Timer_ [protected]

Definition at line 423 of file ShowCamWxFrame.hh.

Definition at line 343 of file ShowCamWxFrame.hh.

Definition at line 325 of file ShowCamWxFrame.hh.

Definition at line 411 of file ShowCamWxFrame.hh.

unsigned int BIAS::ShowCamWxFrame::Win32DCAMNumber_ [protected]

Definition at line 330 of file ShowCamWxFrame.hh.

bool BIAS::Param::WriteComments_ [protected, inherited]

Definition at line 553 of file Param.hh.

bool BIAS::Param::WriteEnhanced_ [protected, inherited]

Definition at line 554 of file Param.hh.

bool BIAS::Param::WriteFlagSet_ [protected, inherited]

Definition at line 555 of file Param.hh.

bool BIAS::Param::WriteIndent_ [protected, inherited]

Definition at line 552 of file Param.hh.

std::vector<unsigned int> BIAS::ShowCamWxFrame::WriteIndex_ [protected]

Definition at line 395 of file ShowCamWxFrame.hh.

std::vector<BIAS::Camera<unsigned char>* > BIAS::ShowCamWxFrame::XB3AllInOne_ [protected]

Definition at line 371 of file ShowCamWxFrame.hh.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends