Loading...
Searching...
No Matches
clippingPlane.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: clippingPlane.h,v 1.3.18.1 2007/03/25 21:25:58 oliver Exp $
//
#ifndef BALL_VIEW_KERNEL_CLIPPING_PLANE_H
#define BALL_VIEW_KERNEL_CLIPPING_PLANE_H
#ifndef BALL_DATATYPE_HASHSET_H
# include <BALL/DATATYPE/hashSet.h>
#endif
#ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
# include <BALL/VIEW/KERNEL/representation.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT ClippingPlane
{
public:
BALL_CREATE(ClippingPlane)
ClippingPlane();
ClippingPlane(const ClippingPlane& plane);
virtual ~ClippingPlane();
const ClippingPlane& operator = (const ClippingPlane& plane);
void clear();
bool operator == (const ClippingPlane& plane) const;
HashSet<const Representation*>& getRepresentations() { return reps_;}
const Vector3& getNormal() const { return normal_;}
void setNormal(const Vector3& normal) { normal_ = normal;}
bool isActive() const { return active_;}
void setActive(bool state) { active_ = state;}
bool isHidden() const { return hidden_;}
void setHidden(bool hidden) { hidden_ = hidden;}
float getDistance() const;
const Vector3& getPoint() const { return point_;}
void setPoint(const Vector3& v) { point_ = v;}
void flip() { normal_ = -normal_;}
static ColorRGBA& getCappingColor() { return capping_color_;}
bool cappingEnabled() const { return cap_;}
void setCappingEnabled(bool state) { cap_ = state;}
protected:
HashSet<const Representation*> reps_;
Vector3 normal_;
Vector3 point_;
bool active_;
bool hidden_;
bool cap_;
static ColorRGBA capping_color_;
};
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_KERNEL_CLIPPING_PLANE_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::HashSet
Definition hashSet.h:46
BALL::VIEW::ClippingPlane::flip
void flip()
Definition clippingPlane.h:80
BALL::VIEW::ClippingPlane::capping_color_
static ColorRGBA capping_color_
Definition clippingPlane.h:99
BALL::VIEW::ClippingPlane::setHidden
void setHidden(bool hidden)
Definition clippingPlane.h:68
BALL::VIEW::ClippingPlane::setActive
void setActive(bool state)
Definition clippingPlane.h:62
BALL::VIEW::ClippingPlane::getDistance
float getDistance() const
BALL::VIEW::ClippingPlane::clear
void clear()
BALL::VIEW::ClippingPlane::getNormal
const Vector3 & getNormal() const
Definition clippingPlane.h:53
BALL::VIEW::ClippingPlane::setPoint
void setPoint(const Vector3 &v)
Definition clippingPlane.h:77
BALL::VIEW::ClippingPlane::normal_
Vector3 normal_
Definition clippingPlane.h:94
BALL::VIEW::ClippingPlane::setCappingEnabled
void setCappingEnabled(bool state)
Definition clippingPlane.h:89
BALL::VIEW::ClippingPlane::hidden_
bool hidden_
Definition clippingPlane.h:97
BALL::VIEW::ClippingPlane::point_
Vector3 point_
Definition clippingPlane.h:95
BALL::VIEW::ClippingPlane::setNormal
void setNormal(const Vector3 &normal)
Definition clippingPlane.h:56
BALL::VIEW::ClippingPlane::isHidden
bool isHidden() const
Definition clippingPlane.h:65
BALL::VIEW::ClippingPlane::active_
bool active_
Definition clippingPlane.h:96
BALL::VIEW::ClippingPlane::getPoint
const Vector3 & getPoint() const
Definition clippingPlane.h:74
BALL::VIEW::ClippingPlane::ClippingPlane
ClippingPlane()
BALL::VIEW::ClippingPlane::cap_
bool cap_
Definition clippingPlane.h:98
BALL::VIEW::ClippingPlane::getCappingColor
static ColorRGBA & getCappingColor()
Definition clippingPlane.h:83
BALL::VIEW::ClippingPlane::getRepresentations
HashSet< const Representation * > & getRepresentations()
Definition clippingPlane.h:50
BALL::VIEW::ClippingPlane::isActive
bool isActive() const
Definition clippingPlane.h:59
BALL::VIEW::ClippingPlane::cappingEnabled
bool cappingEnabled() const
Definition clippingPlane.h:86
BALL::VIEW::ClippingPlane::reps_
HashSet< const Representation * > reps_
Definition clippingPlane.h:93
BALL::VIEW::ColorRGBA
Definition colorRGBA.h:32
BALL::VIEW::Representation
Definition representation.h:59
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
hashSet.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
representation.h