Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::GraphicStatisticsForegroundBase Class Reference

GraphicStatisticsForeground Base Class.

#include <OSGGraphicStatisticsForegroundBase.h>

Inheritance diagram for osg::GraphicStatisticsForegroundBase:

osg::StatisticsForeground osg::StatisticsForegroundBase osg::Foreground osg::ForegroundBase osg::AttachmentContainer osg::FieldContainer osg::GraphicStatisticsForeground List of all members.

Public Types

typedef GraphicStatisticsForegroundPtr Ptr
enum  {
  DisplayTypeFieldId = Inherited::NextFieldId, SizeFieldId = DisplayTypeFieldId + 1, PosFieldId = SizeFieldId + 1, ColorMaxFieldId = PosFieldId + 1,
  ColorMinFieldId = ColorMaxFieldId + 1, ColorCurrentFieldId = ColorMinFieldId + 1, MinValueFieldId = ColorCurrentFieldId + 1, MaxValueFieldId = MinValueFieldId + 1,
  FlagsFieldId = MaxValueFieldId + 1, HistorySizeFieldId = FlagsFieldId + 1, DescriptionFieldId = HistorySizeFieldId + 1, LineWidthFieldId = DescriptionFieldId + 1,
  BackgroundColorFieldId = LineWidthFieldId + 1, TextEnabledFieldId = BackgroundColorFieldId + 1, BackgroundEnabledFieldId = TextEnabledFieldId + 1, BorderEnabledFieldId = BackgroundEnabledFieldId + 1,
  NextFieldId = BorderEnabledFieldId + 1
}

Public Member Functions

FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*MFStringgetMFDescription (void)
 Get the GraphicStatisticsForeground::_mfDescription field.
SFReal32getSFLineWidth (void)
 Get the GraphicStatisticsForeground::_sfLineWidth field.
SFColor3fgetSFBackgroundColor (void)
 Get the GraphicStatisticsForeground::_sfBackgroundColor field.
SFBoolgetSFTextEnabled (void)
 Get the GraphicStatisticsForeground::_sfTextEnabled field.
SFBoolgetSFBackgroundEnabled (void)
 Get the GraphicStatisticsForeground::_sfBackgroundEnabled field.
SFBoolgetSFBorderEnabled (void)
 Get the GraphicStatisticsForeground::_sfBorderEnabled field.
Real32getLineWidth (void)
 Get the value of the GraphicStatisticsForeground::_sfLineWidth field.
const Real32getLineWidth (void) const
 Get the value of the GraphicStatisticsForeground::_sfLineWidth field.
Color3fgetBackgroundColor (void)
 Get the value of the GraphicStatisticsForeground::_sfBackgroundColor field.
const Color3fgetBackgroundColor (void) const
 Get the value of the GraphicStatisticsForeground::_sfBackgroundColor field.
bool & getTextEnabled (void)
 Get the value of the GraphicStatisticsForeground::_sfTextEnabled field.
const bool & getTextEnabled (void) const
 Get the value of the GraphicStatisticsForeground::_sfTextEnabled field.
bool & getBackgroundEnabled (void)
 Get the value of the GraphicStatisticsForeground::_sfBackgroundEnabled field.
const bool & getBackgroundEnabled (void) const
 Get the value of the GraphicStatisticsForeground::_sfBackgroundEnabled field.
bool & getBorderEnabled (void)
 Get the value of the GraphicStatisticsForeground::_sfBorderEnabled field.
const bool & getBorderEnabled (void) const
 Get the value of the GraphicStatisticsForeground::_sfBorderEnabled field.
std::string & getDescription (const UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfDescription field.
MFStringgetDescription (void)
 Get the GraphicStatisticsForeground::_mfDescription field.
const MFStringgetDescription (void) const
 Get the GraphicStatisticsForeground::_mfDescription field.
Field Set
*void setLineWidth (const Real32 &value)
 Set the value of the GraphicStatisticsForeground::_sfLineWidth field.
void setBackgroundColor (const Color3f &value)
 Set the value of the GraphicStatisticsForeground::_sfBackgroundColor field.
void setTextEnabled (const bool &value)
 Set the value of the GraphicStatisticsForeground::_sfTextEnabled field.
void setBackgroundEnabled (const bool &value)
 Set the value of the GraphicStatisticsForeground::_sfBackgroundEnabled field.
void setBorderEnabled (const bool &value)
 Set the value of the GraphicStatisticsForeground::_sfBorderEnabled field.
Binary Access
*virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Copy
*virtual FieldContainerPtr shallowCopy (void) const
Sync
*virtual void changed (BitVector whichField, UInt32 origin)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
draw
*virtual void draw (DrawActionBase *action, Viewport *port)=0
Field Get
*MFInt32getMFElementIDs (void)
 Get the StatisticsForeground::_mfElementIDs field.
SFStatCollectorgetSFCollector (void)
 Get the StatisticsForeground::_sfCollector field.
StatCollectorgetCollector (void)
 Get the value of the StatisticsForeground::_sfCollector field.
const StatCollectorgetCollector (void) const
 Get the value of the StatisticsForeground::_sfCollector field.
Int32getElementIDs (const UInt32 index)
 Get the value of the index element the StatisticsForeground::_mfElementIDs field.
MFInt32getElementIDs (void)
 Get the StatisticsForeground::_mfElementIDs field.
const MFInt32getElementIDs (void) const
 Get the StatisticsForeground::_mfElementIDs field.
Field Set
*void setCollector (const StatCollector &value)
 Set the value of the StatisticsForeground::_sfCollector field.
Field Get
*SFBoolgetSFActive (void)
 Get the Foreground::_sfActive field.
bool & getActive (void)
 Get the value of the Foreground::_sfActive field.
const bool & getActive (void) const
 Get the value of the Foreground::_sfActive field.
Field Set
*void setActive (const bool &value)
 Set the value of the Foreground::_sfActive field.

Static Public Member Functions

Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
Construction
*static GraphicStatisticsForegroundPtr create (void)
 create a new instance of the class
static GraphicStatisticsForegroundPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype
Class Get
*static const char * getClassname (void)

Static Public Attributes

static const osg::BitVector DisplayTypeFieldMask
static const osg::BitVector SizeFieldMask
static const osg::BitVector PosFieldMask
static const osg::BitVector ColorMaxFieldMask
static const osg::BitVector ColorMinFieldMask
static const osg::BitVector ColorCurrentFieldMask
static const osg::BitVector MinValueFieldMask
static const osg::BitVector MaxValueFieldMask
static const osg::BitVector FlagsFieldMask
static const osg::BitVector HistorySizeFieldMask
static const osg::BitVector DescriptionFieldMask
static const osg::BitVector LineWidthFieldMask
static const osg::BitVector BackgroundColorFieldMask
static const osg::BitVector TextEnabledFieldMask
static const osg::BitVector BackgroundEnabledFieldMask
static const osg::BitVector BorderEnabledFieldMask
static const osg::BitVector MTInfluenceMask
static const osg::BitVector ElementIDsFieldMask
static const osg::BitVector CollectorFieldMask
static const osg::BitVector ActiveFieldMask
static const BitVector AttachmentsFieldMask
static const BitVector NextFieldMask
CoredNodePtr helper
static const bool isNodeCore = false

Protected Member Functions

Constructors
GraphicStatisticsForegroundBase (void)
 GraphicStatisticsForegroundBase (const GraphicStatisticsForegroundBase &source)
Destructors
*virtual ~GraphicStatisticsForegroundBase (void)
Field Get
*MFUInt32getMFDisplayType (void)
 Get the GraphicStatisticsForeground::_mfDisplayType field.
MFVec2fgetMFSize (void)
 Get the GraphicStatisticsForeground::_mfSize field.
MFVec2fgetMFPos (void)
 Get the GraphicStatisticsForeground::_mfPos field.
MFColor4fgetMFColorMax (void)
 Get the GraphicStatisticsForeground::_mfColorMax field.
MFColor4fgetMFColorMin (void)
 Get the GraphicStatisticsForeground::_mfColorMin field.
MFColor4fgetMFColorCurrent (void)
 Get the GraphicStatisticsForeground::_mfColorCurrent field.
MFReal32getMFMinValue (void)
 Get the GraphicStatisticsForeground::_mfMinValue field.
MFReal32getMFMaxValue (void)
 Get the GraphicStatisticsForeground::_mfMaxValue field.
MFUInt32getMFFlags (void)
 Get the GraphicStatisticsForeground::_mfFlags field.
MFUInt32getMFHistorySize (void)
 Get the GraphicStatisticsForeground::_mfHistorySize field.
UInt32getDisplayType (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfDisplayType field.
MFUInt32getDisplayType (void)
 Get the GraphicStatisticsForeground::_mfDisplayType field.
const MFUInt32getDisplayType (void) const
 Get the GraphicStatisticsForeground::_mfDisplayType field.
Vec2fgetSize (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfSize field.
MFVec2fgetSize (void)
 Get the GraphicStatisticsForeground::_mfSize field.
const MFVec2fgetSize (void) const
 Get the GraphicStatisticsForeground::_mfSize field.
Vec2fgetPos (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfPos field.
MFVec2fgetPos (void)
 Get the GraphicStatisticsForeground::_mfPos field.
const MFVec2fgetPos (void) const
 Get the GraphicStatisticsForeground::_mfPos field.
Color4fgetColorMax (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfColorMax field.
MFColor4fgetColorMax (void)
 Get the GraphicStatisticsForeground::_mfColorMax field.
const MFColor4fgetColorMax (void) const
 Get the GraphicStatisticsForeground::_mfColorMax field.
Color4fgetColorMin (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfColorMin field.
MFColor4fgetColorMin (void)
 Get the GraphicStatisticsForeground::_mfColorMin field.
const MFColor4fgetColorMin (void) const
 Get the GraphicStatisticsForeground::_mfColorMin field.
Color4fgetColorCurrent (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfColorCurrent field.
MFColor4fgetColorCurrent (void)
 Get the GraphicStatisticsForeground::_mfColorCurrent field.
const MFColor4fgetColorCurrent (void) const
 Get the GraphicStatisticsForeground::_mfColorCurrent field.
Real32getMinValue (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfMinValue field.
MFReal32getMinValue (void)
 Get the GraphicStatisticsForeground::_mfMinValue field.
const MFReal32getMinValue (void) const
 Get the GraphicStatisticsForeground::_mfMinValue field.
Real32getMaxValue (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfMaxValue field.
MFReal32getMaxValue (void)
 Get the GraphicStatisticsForeground::_mfMaxValue field.
const MFReal32getMaxValue (void) const
 Get the GraphicStatisticsForeground::_mfMaxValue field.
UInt32getFlags (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfFlags field.
MFUInt32getFlags (void)
 Get the GraphicStatisticsForeground::_mfFlags field.
const MFUInt32getFlags (void) const
 Get the GraphicStatisticsForeground::_mfFlags field.
UInt32getHistorySize (UInt32 index)
 Get the value of the index element the GraphicStatisticsForeground::_mfHistorySize field.
MFUInt32getHistorySize (void)
 Get the GraphicStatisticsForeground::_mfHistorySize field.
const MFUInt32getHistorySize (void) const
 Get the GraphicStatisticsForeground::_mfHistorySize field.
Sync
*void executeSyncImpl (GraphicStatisticsForegroundBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Sync
*void executeSyncImpl (StatisticsForegroundBase *pOther, const BitVector &whichField)
Sync
*void executeSyncImpl (ForegroundBase *pOther, const BitVector &whichField)
MT Destruction
*virtual void onDestroy (void)

Protected Attributes

Fields
*MFUInt32 _mfDisplayType
MFVec2f _mfSize
MFVec2f _mfPos
MFColor4f _mfColorMax
MFColor4f _mfColorMin
MFColor4f _mfColorCurrent
MFReal32 _mfMinValue
MFReal32 _mfMaxValue
MFUInt32 _mfFlags
MFUInt32 _mfHistorySize
MFString _mfDescription
SFReal32 _sfLineWidth
SFColor3f _sfBackgroundColor
SFBool _sfTextEnabled
SFBool _sfBackgroundEnabled
SFBool _sfBorderEnabled
Fields
*MFInt32 _mfElementIDs
SFStatCollector _sfCollector
Fields
*SFBool _sfActive

Private Types

typedef StatisticsForeground Inherited

Private Member Functions

void operator= (const GraphicStatisticsForegroundBase &source)

Static Private Attributes

static FieldDescription_desc []
 GraphicStatisticsForeground description.
static FieldContainerType _type

Friends

class FieldContainer

Detailed Description

Definition at line 96 of file OSGGraphicStatisticsForegroundBase.h.


Member Typedef Documentation

typedef StatisticsForeground osg::GraphicStatisticsForegroundBase::Inherited [private]
 

Reimplemented from osg::StatisticsForeground.

Reimplemented in osg::GraphicStatisticsForeground.

Definition at line 100 of file OSGGraphicStatisticsForegroundBase.h.

typedef GraphicStatisticsForegroundPtr osg::GraphicStatisticsForegroundBase::Ptr
 

Reimplemented from osg::StatisticsForegroundBase.

Definition at line 105 of file OSGGraphicStatisticsForegroundBase.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
DisplayTypeFieldId 
SizeFieldId 
PosFieldId 
ColorMaxFieldId 
ColorMinFieldId 
ColorCurrentFieldId 
MinValueFieldId 
MaxValueFieldId 
FlagsFieldId 
HistorySizeFieldId 
DescriptionFieldId 
LineWidthFieldId 
BackgroundColorFieldId 
TextEnabledFieldId 
BackgroundEnabledFieldId 
BorderEnabledFieldId 
NextFieldId 

Reimplemented from osg::StatisticsForegroundBase.

Definition at line 107 of file OSGGraphicStatisticsForegroundBase.h.

00108     {
00109         DisplayTypeFieldId       = Inherited::NextFieldId,
00110         SizeFieldId              = DisplayTypeFieldId       + 1,
00111         PosFieldId               = SizeFieldId              + 1,
00112         ColorMaxFieldId          = PosFieldId               + 1,
00113         ColorMinFieldId          = ColorMaxFieldId          + 1,
00114         ColorCurrentFieldId      = ColorMinFieldId          + 1,
00115         MinValueFieldId          = ColorCurrentFieldId      + 1,
00116         MaxValueFieldId          = MinValueFieldId          + 1,
00117         FlagsFieldId             = MaxValueFieldId          + 1,
00118         HistorySizeFieldId       = FlagsFieldId             + 1,
00119         DescriptionFieldId       = HistorySizeFieldId       + 1,
00120         LineWidthFieldId         = DescriptionFieldId       + 1,
00121         BackgroundColorFieldId   = LineWidthFieldId         + 1,
00122         TextEnabledFieldId       = BackgroundColorFieldId   + 1,
00123         BackgroundEnabledFieldId = TextEnabledFieldId       + 1,
00124         BorderEnabledFieldId     = BackgroundEnabledFieldId + 1,
00125         NextFieldId              = BorderEnabledFieldId     + 1
00126     };


Constructor & Destructor Documentation

GraphicStatisticsForegroundBase::GraphicStatisticsForegroundBase void   )  [protected]
 

Definition at line 340 of file OSGGraphicStatisticsForegroundBase.cpp.

00340                                                                      :
00341     _mfDisplayType            (), 
00342     _mfSize                   (), 
00343     _mfPos                    (), 
00344     _mfColorMax               (), 
00345     _mfColorMin               (), 
00346     _mfColorCurrent           (), 
00347     _mfMinValue               (), 
00348     _mfMaxValue               (), 
00349     _mfFlags                  (), 
00350     _mfHistorySize            (), 
00351     _mfDescription            (), 
00352     _sfLineWidth              (Real32(1.0)), 
00353     _sfBackgroundColor        (Color3f(0.0,0.0,0.0)), 
00354     _sfTextEnabled            (bool(true)), 
00355     _sfBackgroundEnabled      (bool(true)), 
00356     _sfBorderEnabled          (bool(true)), 
00357     Inherited() 
00358 {
00359 }

GraphicStatisticsForegroundBase::GraphicStatisticsForegroundBase const GraphicStatisticsForegroundBase source  )  [protected]
 

Definition at line 365 of file OSGGraphicStatisticsForegroundBase.cpp.

00365                                                                                                               :
00366     _mfDisplayType            (source._mfDisplayType            ), 
00367     _mfSize                   (source._mfSize                   ), 
00368     _mfPos                    (source._mfPos                    ), 
00369     _mfColorMax               (source._mfColorMax               ), 
00370     _mfColorMin               (source._mfColorMin               ), 
00371     _mfColorCurrent           (source._mfColorCurrent           ), 
00372     _mfMinValue               (source._mfMinValue               ), 
00373     _mfMaxValue               (source._mfMaxValue               ), 
00374     _mfFlags                  (source._mfFlags                  ), 
00375     _mfHistorySize            (source._mfHistorySize            ), 
00376     _mfDescription            (source._mfDescription            ), 
00377     _sfLineWidth              (source._sfLineWidth              ), 
00378     _sfBackgroundColor        (source._sfBackgroundColor        ), 
00379     _sfTextEnabled            (source._sfTextEnabled            ), 
00380     _sfBackgroundEnabled      (source._sfBackgroundEnabled      ), 
00381     _sfBorderEnabled          (source._sfBorderEnabled          ), 
00382     Inherited                 (source)
00383 {
00384 }

GraphicStatisticsForegroundBase::~GraphicStatisticsForegroundBase void   )  [protected, virtual]
 

Definition at line 388 of file OSGGraphicStatisticsForegroundBase.cpp.

00389 {
00390 }


Member Function Documentation

osg::FieldContainerType & osg::GraphicStatisticsForegroundBase::getClassType void   )  [inline, static]
 

Reimplemented from osg::StatisticsForegroundBase.

Definition at line 58 of file OSGGraphicStatisticsForegroundBase.inl.

References _type.

Referenced by create().

00059 {
00060     return _type; 
00061 } 

osg::UInt32 osg::GraphicStatisticsForegroundBase::getClassTypeId void   )  [inline, static]
 

Reimplemented from osg::StatisticsForegroundBase.

Definition at line 65 of file OSGGraphicStatisticsForegroundBase.inl.

References _type, and osg::TypeBase::getId().

00066 {
00067     return _type.getId(); 
00068 } 

FieldContainerType & GraphicStatisticsForegroundBase::getType void   )  [virtual]
 

Reimplemented from osg::StatisticsForegroundBase.

Definition at line 271 of file OSGGraphicStatisticsForegroundBase.cpp.

References _type.

00272 {
00273     return _type; 
00274 } 

const FieldContainerType & GraphicStatisticsForegroundBase::getType void   )  const [virtual]
 

Reimplemented from osg::StatisticsForegroundBase.

Definition at line 276 of file OSGGraphicStatisticsForegroundBase.cpp.

References _type.

00277 {
00278     return _type;
00279 } 

UInt32 GraphicStatisticsForegroundBase::getContainerSize void   )  const [virtual]
 

Reimplemented from osg::StatisticsForegroundBase.

Definition at line 291 of file OSGGraphicStatisticsForegroundBase.cpp.

00292 { 
00293     return sizeof(GraphicStatisticsForeground); 
00294 }

MFString * osg::GraphicStatisticsForegroundBase::getMFDescription void   )  [inline]
 

Definition at line 171 of file OSGGraphicStatisticsForegroundBase.inl.

References _mfDescription.

00172 {
00173     return &_mfDescription;
00174 }

SFReal32 * osg::GraphicStatisticsForegroundBase::getSFLineWidth void   )  [inline]
 

Definition at line 178 of file OSGGraphicStatisticsForegroundBase.inl.

References _sfLineWidth.

00179 {
00180     return &_sfLineWidth;
00181 }

SFColor3f * osg::GraphicStatisticsForegroundBase::getSFBackgroundColor void   )  [inline]
 

Definition at line 185 of file OSGGraphicStatisticsForegroundBase.inl.

References _sfBackgroundColor.

00186 {
00187     return &_sfBackgroundColor;
00188 }

SFBool * osg::GraphicStatisticsForegroundBase::getSFTextEnabled void   )  [inline]
 

Definition at line 192 of file OSGGraphicStatisticsForegroundBase.inl.

References _sfTextEnabled.

00193 {
00194     return &_sfTextEnabled;
00195 }

SFBool * osg::GraphicStatisticsForegroundBase::getSFBackgroundEnabled void   )  [inline]
 

Definition at line 199 of file OSGGraphicStatisticsForegroundBase.inl.

References _sfBackgroundEnabled.

00200 {