143 std::cerr <<
"Error when creating Coordsys Object! materialNode is NULL!" << std::endl;
166 std::string nodename = std::string(
"CoordsysNode for Coordinate system " + _name.toUtf8() );
190 output +=
"========================================================================\n";
194 output +=
"Object Contains a coordinate system : ";
199 output +=
" Position ( " + QString::number(pos[0]) +
", " + QString::number(pos[1]) +
", " + QString::number(pos[2]) +
")";
200 output +=
" Size ( "+ QString::number(size) +
")";
202 output +=
"========================================================================\n";
QString name() const
return the name of the object. The name defaults to NONAME if unset.
bool pickingEnabled()
Check if picking is enabled for this Object.
void deleteData()
Delete all data attached to this object ( calls delete on each object )
virtual ~CoordsysObject()
destructor
CoordsysObject()
constructor
virtual void cleanup()
Reset current object, including all related nodes.
virtual QString getObjectinfo()
Get all Info for the Object as a string.
void setName(QString _name)
Set the name of the Object.
CoordsysNode * coordsysNode()
Get the scenegraph Node.
void enablePicking(bool _enable)
Enable or disable picking for this Object.
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
virtual void update(UpdateType _type=UPDATE_ALL)
Update the whole Object (Selection,Topology,...)
Node for displaying coordinate systems.
QString getObjectinfo()
Get all Info for the Object as a string.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
ACG::SceneGraph::CoordinateSystemNode CoordsysNode
Simple Name for CoordsysNode.
CoordsysNode * coordsysNode_
Get the scenegraph Node.
MaterialNode * materialNode()
get a pointer to the materialnode
DataType dataType() const
void size(const double _size)
set size of the coordsys ( Size is length of one of the axis )
virtual void init(CoordsysNode *_coordsys=0)
Initialize current object, including all related nodes.
bool picked(uint _node_idx)
detect if the node has been picked
void enablePicking(bool _enable)
void setDataType(DataType _type)
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
std::string name() const
Returns: name of node (needs not be unique)
void position(const Vec3d &_pos)
set position of the coordsys