56 #define SPHEREOBJECT_C
142 std::cerr <<
"Error when creating Sphere Object! materialNode is NULL!" << std::endl;
175 std::string nodename = std::string(
"SphereNode for Sphere " + _name.toUtf8() );
199 output +=
"========================================================================\n";
203 output +=
"Object Contains Sphere : ";
208 output +=
" Position ( " + QString::number(pos[0]) +
", " + QString::number(pos[1]) +
", " + QString::number(pos[2]) +
")";
209 output +=
" Size ( " + QString::number(size) +
")";
211 output +=
"========================================================================\n";
bool picked(uint _node_idx)
detect if the node has been picked
QString name() const
return the name of the object. The name defaults to NONAME if unset.
void deleteData()
Delete all data attached to this object ( calls delete on each object )
virtual void cleanup()
Reset current object, including all related nodes.
SphereNode * sphereNode()
Get the scenegraph Node.
virtual void init(SphereNode *_sphere=0)
Initialise current object, including all related nodes.
virtual QString getObjectinfo()
Get all Info for the Object as a string.
SphereObject()
constructor
Primitive & get_primitive(int _idx)
get a primitive
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
void setName(QString _name)
Set the name of the Object.
virtual ~SphereObject()
destructor
VectorT< float, 3 > Vec3f
MaterialNode * materialNode()
get a pointer to the materialnode
ACG::SceneGraph::GlutPrimitiveNode SphereNode
Simple Name for SphereNode.
DataType dataType() const
void setColorInternal(bool _set)
Disable internal color processing.
SphereNode * sphereNode_
Get the scenegraph Node.
bool pickingEnabled()
Check if picking is enabled for this Object.
void enablePicking(bool _enable)
VectorT< float, 4 > Vec4f
QString getObjectinfo()
Get all Info for the Object as a string.
void setDataType(DataType _type)
virtual void update(UpdateType _type=UPDATE_ALL)
Update the whole Object (Selection,Topology,...)
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
void enablePicking(bool _enable)
Enable or disable picking for this Object.
std::string name() const
Returns: name of node (needs not be unique)