cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
svlSampleTargets Class Reference

#include <svlSampleTargets.h>

Inheritance diagram for svlSampleTargets:
svlSample mtsGenericObject cmnGenericObject

Public Member Functions

 svlSampleTargets ()
 
 svlSampleTargets (const svlSampleTargets &other)
 
svlSampleTargetsoperator= (const svlSampleTargets &other)
 
svlSampleGetNewInstance () const
 
svlStreamType GetType () const
 
int SetSize (const svlSample *sample)
 
int SetSize (const svlSample &sample)
 
int CopyOf (const svlSample *sample)
 
int CopyOf (const svlSample &sample)
 
bool IsInitialized () const
 
unsigned char * GetUCharPointer ()
 
const unsigned char * GetUCharPointer () const
 
unsigned int GetDataSize () const
 
void SerializeRaw (std::ostream &outputStream) const
 
void DeSerializeRaw (std::istream &inputStream)
 
 svlSampleTargets (unsigned int dimensions, unsigned int maxtargets, unsigned int channels)
 
void SetSize (unsigned int dimensions, unsigned int maxtargets, unsigned int channels)
 
void SetDimensions (unsigned int dimensions)
 
unsigned int GetDimensions () const
 
void SetMaxTargets (unsigned int maxtargets)
 
unsigned int GetMaxTargets () const
 
void SetChannels (unsigned int channels)
 
unsigned int GetChannels () const
 
vctDynamicVectorRef< int > GetFlagVectorRef ()
 
const vctDynamicConstVectorRef
< int > 
GetFlagVectorRef () const
 
vctDynamicVectorRef< int > GetConfidenceVectorRef (unsigned int channel=0)
 
const vctDynamicConstVectorRef
< int > 
GetConfidenceVectorRef (unsigned int channel=0) const
 
vctDynamicMatrixRef< int > GetPositionMatrixRef (unsigned int channel=0)
 
const vctDynamicConstMatrixRef
< int > 
GetPositionMatrixRef (unsigned int channel=0) const
 
int * GetFlagPointer ()
 
const int * GetFlagPointer () const
 
int * GetConfidencePointer (unsigned int channel=0)
 
const int * GetConfidencePointer (unsigned int channel=0) const
 
int * GetPositionPointer (unsigned int channel=0)
 
const int * GetPositionPointer (unsigned int channel=0) const
 
void ResetTargets ()
 
void SetFlag (unsigned int targetid, int value)
 
int GetFlag (unsigned int targetid) const
 
void SetConfidence (unsigned int targetid, int value, unsigned int channel=0)
 
int GetConfidence (unsigned int targetid, unsigned int channel=0) const
 
void SetPosition (unsigned int targetid, const vctInt2 &value, unsigned int channel=0)
 
void SetPosition (unsigned int targetid, const vctInt3 &value, unsigned int channel=0)
 
int GetPosition (unsigned int targetid, vctInt2 &value, unsigned int channel=0) const
 
int GetPosition (unsigned int targetid, vctInt3 &value, unsigned int channel=0) const
 
- Public Member Functions inherited from svlSample
 svlSample ()
 
 svlSample (const svlSample &other)
 
svlSampleoperator= (const svlSample &other)
 
virtual ~svlSample ()
 
void SetTimestamp (double ts)
 
double GetTimestamp () const
 
void SetEncoder (const std::string &codec, const int parameter)
 
void GetEncoder (std::string &codec, int &parameter) const
 
- Public Member Functions inherited from mtsGenericObject
 mtsGenericObject (void)
 
 mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid)
 
 mtsGenericObject (const mtsGenericObject &other)
 
virtual ~mtsGenericObject (void)
 
bool SetTimestampIfAutomatic (double timestamp)
 
virtual void ToStream (std::ostream &outputStream) const
 
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
 
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter= ' ')
 
size_t ScalarNumber (void) const
 
bool ScalarNumberIsFixed (void) const
 
double Scalar (const size_t index) const throw (std::out_of_range)
 
std::string ScalarDescription (const size_t index, const std::string &userDescription="") const throw (std::out_of_range)
 
- Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
 
virtual const
cmnClassServicesBase
Services (void) const =0
 
bool ReconstructFrom (const cmnGenericObject &other)
 
std::string ToString (void) const
 
virtual cmnLogger::StreamBufTypeGetLogMultiplexer (void) const
 
virtual double Scalar (const size_t CMN_UNUSED(index)) const throw (std::out_of_range)
 
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const
 

Protected Attributes

unsigned int Channels
 
unsigned int Dimensions
 
vctDynamicMatrix< int > Matrix
 

Additional Inherited Members

- Static Public Member Functions inherited from svlSample
static svlSampleGetNewFromType (svlStreamType type)
 

Constructor & Destructor Documentation

svlSampleTargets::svlSampleTargets ( )
svlSampleTargets::svlSampleTargets ( const svlSampleTargets other)
svlSampleTargets::svlSampleTargets ( unsigned int  dimensions,
unsigned int  maxtargets,
unsigned int  channels 
)

Member Function Documentation

int svlSampleTargets::CopyOf ( const svlSample sample)
virtual

Implements svlSample.

int svlSampleTargets::CopyOf ( const svlSample sample)
virtual

Implements svlSample.

void svlSampleTargets::DeSerializeRaw ( std::istream &  inputStream)
virtual

Binary deserialization

Implements svlSample.

unsigned int svlSampleTargets::GetChannels ( ) const
int svlSampleTargets::GetConfidence ( unsigned int  targetid,
unsigned int  channel = 0 
) const
int* svlSampleTargets::GetConfidencePointer ( unsigned int  channel = 0)
const int* svlSampleTargets::GetConfidencePointer ( unsigned int  channel = 0) const
vctDynamicVectorRef<int> svlSampleTargets::GetConfidenceVectorRef ( unsigned int  channel = 0)
const vctDynamicConstVectorRef<int> svlSampleTargets::GetConfidenceVectorRef ( unsigned int  channel = 0) const
unsigned int svlSampleTargets::GetDataSize ( ) const
virtual

Implements svlSample.

unsigned int svlSampleTargets::GetDimensions ( ) const
int svlSampleTargets::GetFlag ( unsigned int  targetid) const
int* svlSampleTargets::GetFlagPointer ( )
const int* svlSampleTargets::GetFlagPointer ( ) const
vctDynamicVectorRef<int> svlSampleTargets::GetFlagVectorRef ( )
const vctDynamicConstVectorRef<int> svlSampleTargets::GetFlagVectorRef ( ) const
unsigned int svlSampleTargets::GetMaxTargets ( ) const
svlSample* svlSampleTargets::GetNewInstance ( ) const
virtual

Implements svlSample.

int svlSampleTargets::GetPosition ( unsigned int  targetid,
vctInt2 value,
unsigned int  channel = 0 
) const
int svlSampleTargets::GetPosition ( unsigned int  targetid,
vctInt3 value,
unsigned int  channel = 0 
) const
vctDynamicMatrixRef<int> svlSampleTargets::GetPositionMatrixRef ( unsigned int  channel = 0)
const vctDynamicConstMatrixRef<int> svlSampleTargets::GetPositionMatrixRef ( unsigned int  channel = 0) const
int* svlSampleTargets::GetPositionPointer ( unsigned int  channel = 0)
const int* svlSampleTargets::GetPositionPointer ( unsigned int  channel = 0) const
svlStreamType svlSampleTargets::GetType ( ) const
virtual

Implements svlSample.

unsigned char* svlSampleTargets::GetUCharPointer ( )
virtual

Implements svlSample.

const unsigned char* svlSampleTargets::GetUCharPointer ( ) const
virtual

Implements svlSample.

bool svlSampleTargets::IsInitialized ( ) const
virtual

Reimplemented from svlSample.

svlSampleTargets& svlSampleTargets::operator= ( const svlSampleTargets other)
void svlSampleTargets::ResetTargets ( )
void svlSampleTargets::SerializeRaw ( std::ostream &  outputStream) const
virtual

Binary serialization

Implements svlSample.

void svlSampleTargets::SetChannels ( unsigned int  channels)
void svlSampleTargets::SetConfidence ( unsigned int  targetid,
int  value,
unsigned int  channel = 0 
)
void svlSampleTargets::SetDimensions ( unsigned int  dimensions)
void svlSampleTargets::SetFlag ( unsigned int  targetid,
int  value 
)
void svlSampleTargets::SetMaxTargets ( unsigned int  maxtargets)
void svlSampleTargets::SetPosition ( unsigned int  targetid,
const vctInt2 value,
unsigned int  channel = 0 
)
void svlSampleTargets::SetPosition ( unsigned int  targetid,
const vctInt3 value,
unsigned int  channel = 0 
)
int svlSampleTargets::SetSize ( const svlSample sample)
virtual

Implements svlSample.

int svlSampleTargets::SetSize ( const svlSample sample)
virtual

Implements svlSample.

void svlSampleTargets::SetSize ( unsigned int  dimensions,
unsigned int  maxtargets,
unsigned int  channels 
)

Member Data Documentation

unsigned int svlSampleTargets::Channels
protected
unsigned int svlSampleTargets::Dimensions
protected
vctDynamicMatrix<int> svlSampleTargets::Matrix
protected

The documentation for this class was generated from the following file: