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