ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
ICoordinateSystemabstract

Interface for coordinate systems. More...

Inheritance diagram for ICoordinateSystem:
[legend]

Public Member Functions

 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...
 

Detailed Description

Interface for coordinate systems.

Definition at line 84 of file coordinate_systems_intf.h.

Member Function Documentation

◆ AddNode()

virtual tResult AddNode ( osg::Node *  pNode,
INodeHandler pNodeHandler = nullptr 
)
pure virtual

Adds a node to the coordinate system.

Parameters
[in]pNodeThe node.
[in,out]pNodeHandlerA 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]strNameThe name of the child.
[out]pChildThis 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]oChildrenThe 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]strNameThe 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]oQuatThe new attitude.

◆ SetPivotPoint()

virtual tVoid SetPivotPoint ( const osg::Vec3d &  oPivot)
pure virtual

Set the pivot point of the coordinate system.

Parameters
[in]oPivotThe new pivot point.

◆ SetPosition()

virtual tVoid SetPosition ( const osg::Vec3d &  oPos)
pure virtual

Set the position of the coordinate system.

Parameters
[in]oPosThe new position.

◆ SetScale()

virtual tVoid SetScale ( const osg::Vec3d &  oScale)
pure virtual

Set the scale of the coordinate system.

Parameters
[in]oScaleThe new scale factors.