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