54 #ifndef ACG_CLIPPING_NODE_HH 55 #define ACG_CLIPPING_NODE_HH 60 #include "BaseNode.hh" 62 #include <ACG/GL/RenderObject.hh> 88 const std::string& _name =
"<ClippingNode>" )
104 offset_plane0_[0] = 0.0;
105 offset_plane0_[1] = 0.0;
106 offset_plane0_[2] = 0.0;
107 offset_plane0_[3] = 0.0;
109 offset_plane1_[0] = 0.0;
110 offset_plane1_[1] = 0.0;
111 offset_plane1_[2] = 0.0;
112 offset_plane1_[3] = 0.0;
135 void set_plane(
const Vec3f& _position,
const Vec3f& _normal,
float _eps=0.0);
147 void set_offset(
float _dist);
150 Vec4d plane0()
const {
return Vec4d(offset_plane0_[0], offset_plane0_[1], offset_plane0_[2], offset_plane0_[3]); }
153 Vec4d plane1()
const {
return Vec4d(offset_plane1_[0], offset_plane1_[1], offset_plane1_[2], offset_plane1_[3]); }
157 Vec3f position_, normal_;
158 GLdouble plane0_[4], plane1_[4], offset_plane0_[4], offset_plane1_[4];
159 float slice_width_, offset_;
177 void modifyVertexEndCode(QStringList* _code);
211 #endif // ACG_CLIPPING_NODE_HH defined const Vec3f & position() const
get position
float slice_width() const
get slice width
Namespace providing different geometric functions concerning angles.
Interface for modifying render objects.
virtual ~ClippingNode()
Destructor.
Vec4d plane0() const
get first plane equation
const Vec3f & normal() const
get normal
Vec4d plane1() const
get second plane equation
ClippingNode(BaseNode *_parent=0, const std::string &_name="<ClippingNode>")
Default constructor. Applies all properties.
Interface class between scenegraph and renderer.
VectorT< double, 4 > Vec4d