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";
CoordsysNode * coordsysNode_
Get the scenegraph Node.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
std::string name() const
Returns: name of node (needs not be unique)
void size(const double _size)
set size of the coordsys ( Size is length of one of the axis )
virtual QString getObjectinfo()
Get all Info for the Object as a string.
QString name() const
return the name of the object. The name defaults to NONAME if unset.
QString getObjectinfo()
Get all Info for the Object as a string.
void deleteData()
Delete all data attached to this object ( calls delete on each object )
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
MaterialNode * materialNode()
get a pointer to the materialnode
DataType dataType() const
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
Node for displaying coordinate systems.
ACG::SceneGraph::CoordinateSystemNode CoordsysNode
Simple Name for CoordsysNode.
CoordsysNode * coordsysNode()
Get the scenegraph Node.
void position(const Vec3d &_pos)
set position of the coordsys
virtual ~CoordsysObject()
destructor
CoordsysObject()
constructor
void setDataType(DataType _type)
virtual void update(UpdateType _type=UPDATE_ALL)
Update the whole Object (Selection,Topology,...)
bool pickingEnabled()
Check if picking is enabled for this Object.
void setName(QString _name)
Set the name of the Object.
void enablePicking(bool _enable)
Enable or disable picking for this Object.
virtual void cleanup()
Reset current object, including all related nodes.
void enablePicking(bool _enable)