Interface for coordinate systems.
More...
|
| ADTF_IID (ICoordinateSystem, "coordinatesystem.endor.mixinlib.disptb.adtf.iid";) |
| Define an interface id for this class
|
|
virtual tResult | GetName (base::ant::IString &&strName) const =0 |
| Returns the name of the coordinate system. More...
|
|
virtual tResult | GetChildren (ucom::ant::iobject_enum< ICoordinateSystem > &oChildren)=0 |
| Returns all child coordinate systems. More...
|
|
virtual tResult | AddNode (osg::Node *pNode, INodeHandler *pNodeHandler=nullptr)=0 |
| Adds a node to the coordinate system. More...
|
|
virtual tResult | CreateChild (const tChar *strName, ucom::ant::iobject_ptr< ICoordinateSystem > &pChild)=0 |
| Creates a new child coordinate system. More...
|
|
virtual tVoid | SetPosition (const osg::Vec3d &oPos)=0 |
| Set the position of the coordinate system. More...
|
|
virtual tVoid | SetAttitude (const osg::Quat &oQuat)=0 |
| Set the attitude of the coordinate system. More...
|
|
virtual tVoid | SetScale (const osg::Vec3d &oScale)=0 |
| Set the scale of the coordinate system. More...
|
|
virtual tVoid | SetPivotPoint (const osg::Vec3d &oPivot)=0 |
| Set the pivot point of the coordinate system. More...
|
|
Interface for coordinate systems.
Definition at line 84 of file coordinate_systems_intf.h.
◆ AddNode()
virtual tResult AddNode |
( |
osg::Node * |
pNode, |
|
|
INodeHandler * |
pNodeHandler = nullptr |
|
) |
| |
|
pure virtual |
Adds a node to the coordinate system.
- Parameters
-
[in] | pNode | The node. |
[in,out] | pNodeHandler | A handler for the added node. |
- Returns
- Standard result.
◆ CreateChild()
virtual tResult CreateChild |
( |
const tChar * |
strName, |
|
|
ucom::ant::iobject_ptr< ICoordinateSystem > & |
pChild |
|
) |
| |
|
pure virtual |
Creates a new child coordinate system.
- Parameters
-
[in] | strName | The name of the child. |
[out] | pChild | This will point to the new coordinate system. |
- Returns
- Standard Result.
◆ GetChildren()
virtual tResult GetChildren |
( |
ucom::ant::iobject_enum< ICoordinateSystem > & |
oChildren | ) |
|
|
pure virtual |
Returns all child coordinate systems.
- Parameters
-
[out] | oChildren | The list of child coordinate systems. |
- Returns
- Standard Resutl.
◆ GetName()
virtual tResult GetName |
( |
base::ant::IString && |
strName | ) |
const |
|
pure virtual |
Returns the name of the coordinate system.
- Parameters
-
[out] | strName | The name of the coordinate system. |
- Returns
- Standard Result.
◆ SetAttitude()
virtual tVoid SetAttitude |
( |
const osg::Quat & |
oQuat | ) |
|
|
pure virtual |
Set the attitude of the coordinate system.
- Parameters
-
[in] | oQuat | The new attitude. |
◆ SetPivotPoint()
virtual tVoid SetPivotPoint |
( |
const osg::Vec3d & |
oPivot | ) |
|
|
pure virtual |
Set the pivot point of the coordinate system.
- Parameters
-
[in] | oPivot | The new pivot point. |
◆ SetPosition()
virtual tVoid SetPosition |
( |
const osg::Vec3d & |
oPos | ) |
|
|
pure virtual |
Set the position of the coordinate system.
- Parameters
-
[in] | oPos | The new position. |
◆ SetScale()
virtual tVoid SetScale |
( |
const osg::Vec3d & |
oScale | ) |
|
|
pure virtual |
Set the scale of the coordinate system.
- Parameters
-
[in] | oScale | The new scale factors. |