VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtEnvironmentalSphereRecord Class Reference

DtEnvironmentalSphereRecord implements the Environmental geometry record type "Sphere Record 1" See Enumerated Bit Values document, section 12.3.4.5. More...

+ Inheritance diagram for DtEnvironmentalSphereRecord:
+ Collaboration diagram for DtEnvironmentalSphereRecord:

Public Member Functions

 DtEnvironmentalSphereRecord ()
 
 DtEnvironmentalSphereRecord (const DtEnvironmentalSphereRecord &orig)
 Copy constructor. More...
 
const DtEnvironmentalSphereRecordoperator= (const DtEnvironmentalSphereRecord &orig)
 
virtual ~DtEnvironmentalSphereRecord ()
 
virtual DtEnvironmentalRecordclone () const
 Clone. More...
 
virtual void setLocation (const DtVector &location)
 
virtual const DtVectorlocation () const
 
virtual void setRadius (DtFloat32 radius)
 
virtual DtFloat32 radius () const
 
virtual bool createNetworkRepresentation ()
 This doesn't need to be called explicitly. More...
 
const
DtNetEnvironmentalSphereRecord
sphereNetRep () const
 returns the network representation of the environmental record More...
 
DtNetEnvironmentalSphereRecordsphereNetRep ()
 
virtual void setFromNet (const DtNetEnvironmentalRecord &buffer, int protocolVersion)
 used by the PDU class to fill in the network representation More...
 
virtual int netRepSize () const
 Returns the size of the network representation. More...
 
- Public Member Functions inherited from DtEnvironmentalGeometryRecord
 DtEnvironmentalGeometryRecord ()
 Constructor. More...
 
 DtEnvironmentalGeometryRecord (const DtEnvironmentalGeometryRecord &orig)
 Copy constructor. More...
 
const
DtEnvironmentalGeometryRecord
operator= (const DtEnvironmentalGeometryRecord &orig)
 Assignment Operator. More...
 
virtual ~DtEnvironmentalGeometryRecord ()
 Destructor. More...
 
virtual void setHasState (bool hasState)
 Set/get a flag to indicate whether or not a state record is associated with this geometry record. More...
 
virtual bool hasState () const
 
- Public Member Functions inherited from DtEnvironmentalRecord
 DtEnvironmentalRecord ()
 Constructor. More...
 
 DtEnvironmentalRecord (const DtEnvironmentalRecord &orig)
 Copy constructor. More...
 
const DtEnvironmentalRecordoperator= (const DtEnvironmentalRecord &orig)
 Assignment operator. More...
 
virtual ~DtEnvironmentalRecord ()
 Destructor. More...
 
virtual void setType (DtU32 type)
 
virtual DtU32 type () const
 
virtual void setLength (DtU16 length)
 
virtual DtU16 length () const
 
virtual void setIndex (DtU8 index)
 
virtual DtU8 index () const
 
const DtNetEnvironmentalRecordnetRep () const
 returns the network representation of the environmental record More...
 
DtNetEnvironmentalRecordnetRep ()
 

Protected Member Functions

DtEnvironmentalSphereRecordself () const
 Casts the 'this' pointer for changing elements in a const function. More...
 
- Protected Member Functions inherited from DtEnvironmentalRecord
virtual bool checkAndCreate ()
 Checks to see if we need a representation, and creates it if we do Returns false, if the create fails, true otherwise. More...
 
virtual bool resizeNetRep (int newSize)
 Resizes the network representation. More...
 
DtEnvironmentalRecordself () const
 Casts the 'this' pointer for changing elements in a const function. More...
 

Protected Attributes

DtVector myCentroid
 
- Protected Attributes inherited from DtEnvironmentalGeometryRecord
bool myHasState
 
- Protected Attributes inherited from DtEnvironmentalRecord
DtNetEnvironmentalRecordmyNetRep
 

Detailed Description

DtEnvironmentalSphereRecord implements the Environmental geometry record type "Sphere Record 1" See Enumerated Bit Values document, section 12.3.4.5.

Constructor & Destructor Documentation

DtEnvironmentalSphereRecord::DtEnvironmentalSphereRecord ( )
DtEnvironmentalSphereRecord::DtEnvironmentalSphereRecord ( const DtEnvironmentalSphereRecord orig)

Copy constructor.

virtual DtEnvironmentalSphereRecord::~DtEnvironmentalSphereRecord ( )
virtual

Member Function Documentation

virtual DtEnvironmentalRecord* DtEnvironmentalSphereRecord::clone ( ) const
virtual

Clone.

Reimplemented from DtEnvironmentalGeometryRecord.

Reimplemented in DtEnvironmentalBoundingSphereRecord.

virtual bool DtEnvironmentalSphereRecord::createNetworkRepresentation ( )
virtual

This doesn't need to be called explicitly.

If any routine that needs the repository finds that it hasn't been created yet, it calls this method.

Reimplemented from DtEnvironmentalRecord.

Reimplemented in DtEnvironmentalBoundingSphereRecord.

virtual const DtVector& DtEnvironmentalSphereRecord::location ( ) const
virtual
virtual int DtEnvironmentalSphereRecord::netRepSize ( ) const
virtual

Returns the size of the network representation.

Reimplemented from DtEnvironmentalRecord.

const DtEnvironmentalSphereRecord& DtEnvironmentalSphereRecord::operator= ( const DtEnvironmentalSphereRecord orig)
virtual DtFloat32 DtEnvironmentalSphereRecord::radius ( ) const
virtual
DtEnvironmentalSphereRecord* DtEnvironmentalSphereRecord::self ( ) const
protected

Casts the 'this' pointer for changing elements in a const function.

virtual void DtEnvironmentalSphereRecord::setFromNet ( const DtNetEnvironmentalRecord buffer,
int  protocolVersion 
)
virtual

used by the PDU class to fill in the network representation

Reimplemented from DtEnvironmentalRecord.

virtual void DtEnvironmentalSphereRecord::setLocation ( const DtVector location)
virtual
virtual void DtEnvironmentalSphereRecord::setRadius ( DtFloat32  radius)
virtual
const DtNetEnvironmentalSphereRecord* DtEnvironmentalSphereRecord::sphereNetRep ( ) const

returns the network representation of the environmental record

DtNetEnvironmentalSphereRecord* DtEnvironmentalSphereRecord::sphereNetRep ( )

Member Data Documentation

DtVector DtEnvironmentalSphereRecord::myCentroid
protected

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

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)