60 #ifndef ACG_CLIPPING_NODE_HH 61 #define ACG_CLIPPING_NODE_HH 66 #include "BaseNode.hh" 68 #include <ACG/GL/RenderObject.hh> 94 const std::string& _name =
"<ClippingNode>" )
110 offset_plane0_[0] = 0.0;
111 offset_plane0_[1] = 0.0;
112 offset_plane0_[2] = 0.0;
113 offset_plane0_[3] = 0.0;
115 offset_plane1_[0] = 0.0;
116 offset_plane1_[1] = 0.0;
117 offset_plane1_[2] = 0.0;
118 offset_plane1_[3] = 0.0;
141 void set_plane(
const Vec3f& _position,
const Vec3f& _normal,
float _eps=0.0);
153 void set_offset(
float _dist);
156 Vec4d plane0()
const {
return Vec4d(offset_plane0_[0], offset_plane0_[1], offset_plane0_[2], offset_plane0_[3]); }
159 Vec4d plane1()
const {
return Vec4d(offset_plane1_[0], offset_plane1_[1], offset_plane1_[2], offset_plane1_[3]); }
163 Vec3f position_, normal_;
164 GLdouble plane0_[4], plane1_[4], offset_plane0_[4], offset_plane1_[4];
165 float slice_width_, offset_;
183 void modifyVertexBeginCode(QStringList* _code);
217 #endif // ACG_CLIPPING_NODE_HH defined
Interface for modifying render objects.
Vec4d plane1() const
get second plane equation
float slice_width() const
get slice width
const Vec3f & position() const
get position
Namespace providing different geometric functions concerning angles.
VectorT< double, 4 > Vec4d
Vec4d plane0() const
get first plane equation
const Vec3f & normal() const
get normal
ClippingNode(BaseNode *_parent=0, const std::string &_name="<ClippingNode>")
Default constructor. Applies all properties.
Interface class between scenegraph and renderer.
virtual ~ClippingNode()
Destructor.