20#include <osg/ClipNode>
117 void setDataFromPlane(
const agx::Plane& plane);
122 osg::ref_ptr<osg::ClipPlane> m_clipPlane;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_DECLARE_VECTOR_TYPES(type)
This class wraps the ClipPlane functionality of osg together with a clip node and a clip plane.
ClipPlane(agx::Real a, agx::Real b, agx::Real c, agx::Real d)
Create clip plane from plane constants.
agx::Vec3 getPosition() const
Get the position of the clip plane.
ClipPlane(const agx::Vec3 &normal, const agx::Vec3 &position)
Create clip plane from a position and a normal.
void setClipPlane(const agx::Plane &plane)
Set clip plane from an agx plane.
ClipPlane(const agx::Plane &plane)
Create clip plane from agx::Plane.
void clipAgainstParticleSystem()
Performs the clipping of the set particle system.
void setPosition(const agx::Vec3 &position)
Set position of clip plane.
void setParticleSystemToClip(agx::ParticleSystem *system)
Set the particle system that should be clipped against the clip plane.
void setEnable(bool enable)
Set enable of the clip plane.
agx::Plane getPlane() const
Get a created agx::Plane representation of the clip plane.
void setNormal(const agx::Vec3 &normal)
Set normal of clip plane.
agx::Vec3 getNormal() const
Get the normal of the clip plane.
bool getEnable() const
Get if the clip plane is enabled.
A basic particle system that contains all the storages and buffers required for basic operation and a...
Class representing the mathematical concept of a plane, also called a half- space.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.