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

osg::TileCameraDecoratorBase Class Reference

TileCameraDecorator Base Class.

#include <OSGTileCameraDecoratorBase.h>

Inheritance diagram for osg::TileCameraDecoratorBase:

osg::CameraDecorator osg::CameraDecoratorBase osg::Camera osg::CameraBase osg::AttachmentContainer osg::FieldContainer osg::TileCameraDecorator List of all members.

Public Types

typedef TileCameraDecoratorPtr Ptr
enum  {
  LeftFieldId = Inherited::NextFieldId, RightFieldId = LeftFieldId + 1, BottomFieldId = RightFieldId + 1, TopFieldId = BottomFieldId + 1,
  FullWidthFieldId = TopFieldId + 1, FullHeightFieldId = FullWidthFieldId + 1, NextFieldId = FullHeightFieldId + 1
}

Public Member Functions

Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Sync
*virtual void changed (BitVector whichField, UInt32 origin)
your_category
*virtual void draw (DrawAction *action, const Viewport &port)
virtual void getProjection (Matrix &result, UInt32 width, UInt32 height)
virtual void getProjectionTranslation (Matrix &result, UInt32 width, UInt32 height)
virtual void getViewing (Matrix &result, UInt32 width, UInt32 height)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
Field Get
*SFCameraPtrgetSFDecoratee (void)
SFNodePtrgetSFBeacon (void)
SFReal32getSFNear (void)
SFReal32getSFFar (void)
CameraPtrgetDecoratee (void)
const CameraPtrgetDecoratee (void) const
NodePtrgetBeacon (void)
const NodePtrgetBeacon (void) const
Real32getNear (void)
const Real32getNear (void) const
Real32getFar (void)
const Real32getFar (void) const
Field Set
*void setDecoratee (const CameraPtr &value)
void setBeacon (const NodePtr &value)
void setNear (const Real32 &value)
void setFar (const Real32 &value)
Setup Rendering
*virtual void setup (DrawActionBase *action, const Viewport &port)
virtual void setupProjection (DrawActionBase *action, const Viewport &port)
Access Parameters
virtual void getFrustum (FrustumVolume &result, const Viewport &port)
virtual void getWorldToScreen (Matrix &result, const Viewport &port)
Intersection Helper
*bool calcViewRay (Line &line, Int32 x, Int32 y, const Viewport &port)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFReal32getSFLeft (void)
 Get the TileCameraDecorator::_sfLeft field.
SFReal32getSFRight (void)
 Get the TileCameraDecorator::_sfRight field.
SFReal32getSFBottom (void)
 Get the TileCameraDecorator::_sfBottom field.
SFReal32getSFTop (void)
 Get the TileCameraDecorator::_sfTop field.
SFUInt32getSFFullWidth (void)
 Get the TileCameraDecorator::_sfFullWidth field.
SFUInt32getSFFullHeight (void)
 Get the TileCameraDecorator::_sfFullHeight field.
Real32getLeft (void)
 Get the value of the TileCameraDecorator::_sfLeft field.
const Real32getLeft (void) const
 Get the value of the TileCameraDecorator::_sfLeft field.
Real32getRight (void)
 Get the value of the TileCameraDecorator::_sfRight field.
const Real32getRight (void) const
 Get the value of the TileCameraDecorator::_sfRight field.
Real32getBottom (void)
 Get the value of the TileCameraDecorator::_sfBottom field.
const Real32getBottom (void) const
 Get the value of the TileCameraDecorator::_sfBottom field.
Real32getTop (void)
 Get the value of the TileCameraDecorator::_sfTop field.
const Real32getTop (void) const
 Get the value of the TileCameraDecorator::_sfTop field.
UInt32getFullWidth (void)
 Get the value of the TileCameraDecorator::_sfFullWidth field.
const UInt32getFullWidth (void) const
 Get the value of the TileCameraDecorator::_sfFullWidth field.
UInt32getFullHeight (void)
 Get the value of the TileCameraDecorator::_sfFullHeight field.
const UInt32getFullHeight (void) const
 Get the value of the TileCameraDecorator::_sfFullHeight field.
Field Set
*void setLeft (const Real32 &value)
 Set the value of the TileCameraDecorator::_sfLeft field.
void setRight (const Real32 &value)
 Set the value of the TileCameraDecorator::_sfRight field.
void setBottom (const Real32 &value)
 Set the value of the TileCameraDecorator::_sfBottom field.
void setTop (const Real32 &value)
 Set the value of the TileCameraDecorator::_sfTop field.
void setFullWidth (const UInt32 &value)
 Set the value of the TileCameraDecorator::_sfFullWidth field.
void setFullHeight (const UInt32 &value)
 Set the value of the TileCameraDecorator::_sfFullHeight 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)
your_category
*virtual void draw (DrawAction *action, const Viewport &port)
virtual void getProjection (Matrix &result, UInt32 width, UInt32 height)
virtual void getProjectionTranslation (Matrix &result, UInt32 width, UInt32 height)
virtual void getViewing (Matrix &result, UInt32 width, UInt32 height)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
Field Get
*SFCameraPtrgetSFDecoratee (void)
SFNodePtrgetSFBeacon (void)
SFReal32getSFNear (void)
SFReal32getSFFar (void)
CameraPtrgetDecoratee (void)
const CameraPtrgetDecoratee (void) const
NodePtrgetBeacon (void)
const NodePtrgetBeacon (void) const
Real32getNear (void)
const Real32getNear (void) const
Real32getFar (void)
const Real32getFar (void) const
Field Set
*void setDecoratee (const CameraPtr &value)
void setBeacon (const NodePtr &value)
void setNear (const Real32 &value)
void setFar (const Real32 &value)
Setup Rendering
*virtual void setup (DrawActionBase *action, const Viewport &port)
virtual void setupProjection (DrawActionBase *action, const Viewport &port)
Access Parameters
virtual void getFrustum (FrustumVolume &result, const Viewport &port)
virtual void getWorldToScreen (Matrix &result, const Viewport &port)
Intersection Helper
*bool calcViewRay (Line &line, Int32 x, Int32 y, const Viewport &port)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)

Static Public Member Functions

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

Static Public Attributes

static const osg::BitVector LeftFieldMask
static const osg::BitVector RightFieldMask
static const osg::BitVector BottomFieldMask
static const osg::BitVector TopFieldMask
static const osg::BitVector FullWidthFieldMask
static const osg::BitVector FullHeightFieldMask
static const osg::BitVector MTInfluenceMask
static const osg::BitVector DecorateeFieldMask
static const osg::BitVector BeaconFieldMask
static const osg::BitVector NearFieldMask
static const osg::BitVector FarFieldMask
static const BitVector AttachmentsFieldMask
static const BitVector NextFieldMask
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false

Protected Member Functions

MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Edit
template<class FieldTypeT>
*void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Edit
template<class FieldTypeT>
*void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)
Sync
*void executeSyncImpl (CameraDecoratorBase *pOther, const BitVector &whichField)
Sync
*void executeSyncImpl (CameraBase *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (AttachmentContainer *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
Pointer
*AttachmentContainerPtr getPtr (void)
MT Edit
template<class FieldTypeT>
*void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)
MT Destruction
*virtual void onDestroy (void)
Constructors
TileCameraDecoratorBase (void)
 TileCameraDecoratorBase (const TileCameraDecoratorBase &source)
Destructors
*virtual ~TileCameraDecoratorBase (void)
Sync
*void executeSyncImpl (TileCameraDecoratorBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Sync
*void executeSyncImpl (CameraDecoratorBase *pOther, const BitVector &whichField)
Sync
*void executeSyncImpl (CameraBase *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (AttachmentContainer *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
Pointer
*AttachmentContainerPtr getPtr (void)
MT Edit
template<class FieldTypeT>
*void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)
MT Destruction
*virtual void onDestroy (void)

Static Protected Member Functions

Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &result)
Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &result)
Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &result)
Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &result)

Protected Attributes

Member
*UInt32 _shares
Member
*UInt32 _shares
Fields
*SFCameraPtr _sfDecoratee
Fields
*SFNodePtr _sfBeacon
SFReal32 _sfNear
SFReal32 _sfFar
Fields
*SFAttachmentMap _attachmentMap
Member
*UInt32 _shares
Fields
*SFReal32 _sfLeft
SFReal32 _sfRight
SFReal32 _sfBottom
SFReal32 _sfTop
SFUInt32 _sfFullWidth
SFUInt32 _sfFullHeight
Fields
*SFCameraPtr _sfDecoratee
Fields
*SFNodePtr _sfBeacon
SFReal32 _sfNear
SFReal32 _sfFar
Fields
*SFAttachmentMap _attachmentMap
Member
*UInt32 _shares

Private Types

typedef CameraDecorator Inherited

Private Member Functions

void operator= (const TileCameraDecoratorBase &source)

Static Private Attributes

static FieldDescription_desc []
 TileCameraDecorator description.
static FieldContainerType _type

Friends

class FieldContainer

Detailed Description

Definition at line 86 of file OSGTileCameraDecoratorBase.h.


Member Typedef Documentation

typedef CameraDecorator osg::TileCameraDecoratorBase::Inherited [private]
 

Reimplemented from osg::CameraDecorator.

Reimplemented in osg::TileCameraDecorator.

Definition at line 90 of file OSGTileCameraDecoratorBase.h.

typedef TileCameraDecoratorPtr osg::TileCameraDecoratorBase::Ptr
 

Reimplemented from osg::CameraDecoratorBase.

Definition at line 95 of file OSGTileCameraDecoratorBase.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
LeftFieldId 
RightFieldId 
BottomFieldId 
TopFieldId 
FullWidthFieldId 
FullHeightFieldId 
NextFieldId 

Reimplemented from osg::CameraDecoratorBase.

Definition at line 97 of file OSGTileCameraDecoratorBase.h.

00098     {
00099         LeftFieldId       = Inherited::NextFieldId,
00100         RightFieldId      = LeftFieldId       + 1,
00101         BottomFieldId     = RightFieldId      + 1,
00102         TopFieldId        = BottomFieldId     + 1,
00103         FullWidthFieldId  = TopFieldId        + 1,
00104         FullHeightFieldId = FullWidthFieldId  + 1,
00105         NextFieldId       = FullHeightFieldId + 1
00106     };


Constructor & Destructor Documentation

TileCameraDecoratorBase::TileCameraDecoratorBase void   )  [protected]
 

Definition at line 219 of file OSGTileCameraDecoratorBase.cpp.

00219                                                      :
00220     _sfLeft                   (Real32(0)), 
00221     _sfRight                  (Real32(1)), 
00222     _sfBottom                 (Real32(0)), 
00223     _sfTop                    (Real32(1)), 
00224     _sfFullWidth              (UInt32(0)), 
00225     _sfFullHeight             (UInt32(0)), 
00226     Inherited() 
00227 {
00228 }

TileCameraDecoratorBase::TileCameraDecoratorBase const TileCameraDecoratorBase source  )  [protected]
 

Definition at line 234 of file OSGTileCameraDecoratorBase.cpp.

00234                                                                                       :
00235     _sfLeft                   (source._sfLeft                   ), 
00236     _sfRight                  (source._sfRight                  ), 
00237     _sfBottom                 (source._sfBottom                 ), 
00238     _sfTop                    (source._sfTop                    ), 
00239     _sfFullWidth              (source._sfFullWidth              ), 
00240     _sfFullHeight             (source._sfFullHeight             ), 
00241     Inherited                 (source)
00242 {
00243 }

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

Definition at line 247 of file OSGTileCameraDecoratorBase.cpp.

00248 {
00249 }


Member Function Documentation

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

Reimplemented from osg::CameraDecoratorBase.

Definition at line 58 of file OSGTileCameraDecoratorBase.inl.

References _type.

Referenced by create().

00059 {
00060     return _type; 
00061 } 

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

Reimplemented from osg::CameraDecoratorBase.

Definition at line 65 of file OSGTileCameraDecoratorBase.inl.

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

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

FieldContainerType & TileCameraDecoratorBase::getType void   )  [virtual]
 

Reimplemented from osg::CameraDecoratorBase.

Definition at line 161 of file OSGTileCameraDecoratorBase.cpp.

References _type.

00162 {
00163     return _type; 
00164 } 

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

Reimplemented from osg::CameraDecoratorBase.

Definition at line 166 of file OSGTileCameraDecoratorBase.cpp.

References _type.

00167 {
00168     return _type;
00169 } 

UInt32 TileCameraDecoratorBase::getContainerSize void   )  const [virtual]
 

Reimplemented from osg::CameraDecoratorBase.

Definition at line 181 of file OSGTileCameraDecoratorBase.cpp.

00182 { 
00183     return sizeof(TileCameraDecorator); 
00184 }

SFReal32 * osg::TileCameraDecoratorBase::getSFLeft void   )  [inline]
 

Definition at line 101 of file OSGTileCameraDecoratorBase.inl.

References _sfLeft.

00102 {
00103     return &_sfLeft;
00104 }

SFReal32 * osg::TileCameraDecoratorBase::getSFRight void   )  [inline]
 

Definition at line 108 of file OSGTileCameraDecoratorBase.inl.

References _sfRight.

00109 {
00110     return &_sfRight;
00111 }

SFReal32 * osg::TileCameraDecoratorBase::getSFBottom void   )  [inline]
 

Definition at line 115 of file OSGTileCameraDecoratorBase.inl.

References _sfBottom.

00116 {
00117     return &_sfBottom;
00118 }

SFReal32 * osg::TileCameraDecoratorBase::getSFTop void   )  [inline]
 

Definition at line 122 of file OSGTileCameraDecoratorBase.inl.

References _sfTop.

00123 {
00124     return &_sfTop;
00125 }

SFUInt32 * osg::TileCameraDecoratorBase::getSFFullWidth void   )  [inline]
 

Definition at line 129 of file OSGTileCameraDecoratorBase.inl.

References _sfFullWidth.

00130 {
00131     return &_sfFullWidth;
00132 }

SFUInt32 * osg::TileCameraDecoratorBase::getSFFullHeight void   )  [inline]
 

Definition at line 136 of file OSGTileCameraDecoratorBase.inl.

References _sfFullHeight.

00137 {
00138     return &_sfFullHeight;
00139 }

Real32 & osg::TileCameraDecoratorBase::getLeft void   )  [inline]
 

Definition at line 144 of file OSGTileCameraDecoratorBase.inl.

References _sfLeft, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::TileCameraDecorator::getProjection().

00145 {
00146     return _sfLeft.getValue();
00147 }

const Real32 & osg::TileCameraDecoratorBase::getLeft void   )  const [inline]
 

Definition at line 151 of file