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