AGXDynamics
2.31.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ClipPlane.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, is copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#pragma once
18
19
#include <
agx/PushDisableWarnings.h
>
// Disabling warnings. Include agx/PopDisableWarnings.h below!
20
#include <osg/ClipNode>
21
#include <
agx/PopDisableWarnings.h
>
// End of disabled warnings.
22
#include <
agx/Plane.h
>
23
24
#include <
agxOSG/export.h
>
25
#include <
agxOSG/Node.h
>
26
28
namespace
agx
29
{
30
class
ParticleSystem;
31
}
32
33
namespace
agxOSG
34
{
35
AGX_DECLARE_POINTER_TYPES
(
ClipPlane
);
36
AGX_DECLARE_VECTOR_TYPES
(
ClipPlane
);
37
43
class
AGXOSG_EXPORT
ClipPlane
:
public
osg::ClipNode
44
{
45
public
:
49
ClipPlane
(
const
agx::Plane
& plane );
50
54
ClipPlane
(
const
agx::Vec3
& normal,
const
agx::Vec3
& position );
55
59
ClipPlane
(
agx::Real
a,
agx::Real
b,
agx::Real
c,
agx::Real
d );
60
65
void
setClipPlane(
const
agx::Plane
& plane );
66
71
void
setPosition(
const
agx::Vec3
& position );
72
77
void
setNormal(
const
agx::Vec3
& normal );
78
83
void
setParticleSystemToClip(
agx::ParticleSystem
* system );
84
89
void
setEnable(
bool
enable);
90
94
agx::Plane
getPlane()
const
;
95
99
agx::Vec3
getPosition()
const
;
100
104
agx::Vec3
getNormal()
const
;
105
109
bool
getEnable()
const
;
110
114
void
clipAgainstParticleSystem();
115
116
private
:
117
void
setDataFromPlane(
const
agx::Plane
& plane);
118
119
private
:
120
agx::Vec3
m_position;
121
agx::Vec3
m_normal;
122
osg::ref_ptr<osg::ClipPlane> m_clipPlane;
123
agx::ParticleSystem
* m_system;
124
};
125
}
AGXOSG_EXPORT
#define AGXOSG_EXPORT
PopDisableWarnings.h
Plane.h
agxOSG::AGX_DECLARE_VECTOR_TYPES
AGX_DECLARE_VECTOR_TYPES(ClipPlane)
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agxOSG::ClipPlane
This class wraps the ClipPlane functionality of osg together with a clip node and a clip plane...
Definition:
ClipPlane.h:43
agx::PlaneT
Class representing the mathematical concept of a plane, also called a half- space.
Definition:
Plane.h:31
Node.h
agx::ParticleSystem
A basic particle system that contains all the storages and buffers required for basic operation and a...
Definition:
ParticleSystem.h:65
agx::Vec3T< Real >
PushDisableWarnings.h
export.h
agx::Real
double Real
Definition:
Real.h:42
include
agxOSG
ClipPlane.h
Generated on Mon Mar 21 2022 11:52:58 for AGXDynamics by
1.8.5