93 init( &_object.plane_ );
143 std::cerr <<
"Error when creating Plane Object! materialNode is NULL!" << std::endl;
169 std::string nodename = std::string(
"PlaneNode for Plane " + _name.toUtf8() );
193 output +=
"========================================================================\n";
197 output +=
"Object Contains Plane : ";
202 output +=
" Position ( " + QString::number(pos[0]) +
", " + QString::number(pos[1]) +
", " + QString::number(pos[2]) +
")";
203 output +=
" Normal ( " + QString::number(nor[0]) +
", " + QString::number(nor[1]) +
", " + QString::number(nor[2]) +
")";
205 output +=
"========================================================================\n";
222 Plane& PlaneObject::plane() {
226 void PlaneObject::plane(
Plane _plane) {
ACG::Vec3d position()
get center position of the plane
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
void setName(QString _name)
Set the name of the Object.
PlaneNode * planeNode_
Get the scenegraph Node.
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 )
bool pickingEnabled()
Check if picking is enabled 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
DataType dataType() const
virtual ~PlaneObject()
destructor
void setSize(double _xDirection, double _yDirection)
Set plane size.
void update()
updates the plane before the next render call
void set_point_size(float _sz)
set point size (default: 1.0)
std::string name() const
Returns: name of node (needs not be unique)
PlaneNode * planeNode()
Get the scenegraph Node.
void setDataType(DataType _type)
virtual void init(const Plane *_plane=0)
Initialize current object, including all related nodes.
void enablePicking(bool _enable)
ACG::Vec3d normal()
get current normal
void setPlane(const ACG::Vec3d &_position, const ACG::Vec3d &_xDirection, const ACG::Vec3d &)
Set plane.
void enablePicking(bool _enable)
Enable or disable picking for this Object.
void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
QString getObjectinfo()
Get all Info for the Object as a string.
bool picked(uint _node_idx)
detect if the node has been picked
virtual void cleanup()
Reset current object, including all related nodes.