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