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";
virtual ~SphereObject()
destructor
SphereNode * sphereNode_
Get the scenegraph Node.
void setDataType(DataType _type)
virtual void cleanup()
Reset current object, including all related nodes.
SphereNode * sphereNode()
Get the scenegraph Node.
VectorT< float, 4 > Vec4f
void setColorInternal(bool _set)
Disable internal color processing.
void setName(QString _name)
Set the name of the Object.
void enablePicking(bool _enable)
Enable or disable picking for this Object.
MaterialNode * materialNode()
get a pointer to the materialnode
virtual void update(UpdateType _type=UPDATE_ALL)
Update the whole Object (Selection,Topology,...)
VectorT< float, 3 > Vec3f
void enablePicking(bool _enable)
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 )
std::string name() const
Returns: name of node (needs not be unique)
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
Primitive & get_primitive(int _idx)
get a primitive
QString name() const
return the name of the object. The name defaults to NONAME if unset.
SphereObject()
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.
virtual void init(SphereNode *_sphere=0)
Initialise current object, including all related nodes.
bool pickingEnabled()
Check if picking is enabled for this Object.
ACG::SceneGraph::GlutPrimitiveNode SphereNode
Simple Name for SphereNode.
DataType dataType() const
QString getObjectinfo()
Get all Info for the Object as a string.