BALL 1.5.0
Loading...
Searching...
No Matches
clippingPlane.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4// $Id: clippingPlane.h,v 1.3.18.1 2007/03/25 21:25:58 oliver Exp $
5//
6
7#ifndef BALL_VIEW_KERNEL_CLIPPING_PLANE_H
8#define BALL_VIEW_KERNEL_CLIPPING_PLANE_H
9
10#ifndef BALL_DATATYPE_HASHSET_H
12#endif
13
14#ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
16#endif
17
18namespace BALL
19{
20 namespace VIEW
21 {
26 {
27 public:
28
30
32
35
38 virtual ~ClippingPlane();
39
41 const ClippingPlane& operator = (const ClippingPlane& plane);
42
44 void clear();
45
47 bool operator == (const ClippingPlane& plane) const;
48
50 HashSet<const Representation*>& getRepresentations() { return reps_;}
51
53 const Vector3& getNormal() const { return normal_;}
54
56 void setNormal(const Vector3& normal) { normal_ = normal;}
57
59 bool isActive() const { return active_;}
60
62 void setActive(bool state) { active_ = state;}
63
65 bool isHidden() const { return hidden_;}
66
68 void setHidden(bool hidden) { hidden_ = hidden;}
69
71 float getDistance() const;
72
74 const Vector3& getPoint() const { return point_;}
75
77 void setPoint(const Vector3& v) { point_ = v;}
78
80 void flip() { normal_ = -normal_;}
81
83 static ColorRGBA& getCappingColor() { return capping_color_;}
84
86 bool cappingEnabled() const { return cap_;}
87
89 void setCappingEnabled(bool state) { cap_ = state;}
90
91 protected:
92
96 bool active_;
97 bool hidden_;
98 bool cap_;
100 };
101
102 } // namespace VIEW
103} // namespace BALL
104
105#endif // BALL_VIEW_KERNEL_CLIPPING_PLANE_H
#define BALL_CREATE(name)
Definition create.h:62
static ColorRGBA capping_color_
void setHidden(bool hidden)
void setActive(bool state)
const Vector3 & getNormal() const
void setPoint(const Vector3 &v)
void setCappingEnabled(bool state)
void setNormal(const Vector3 &normal)
const Vector3 & getPoint() const
static ColorRGBA & getCappingColor()
HashSet< const Representation * > reps_
#define BALL_VIEW_EXPORT