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