Loading...
Searching...
No Matches
gridVisualisation.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: gridVisualisation.h,v 1.1.4.1 2007-03-25 21:26:08 oliver Exp $
//
#ifndef BALL_VIEW_PRIMITIV_GRIDSLICE_H
#define BALL_VIEW_PRIMITIV_GRIDSLICE_H
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA3D_H
# include <BALL/DATATYPE/regularData3D.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT GridVisualisation
: public GeometricObject
{
public:
enum Type
{
PLANE,
SLICES,
DOTS
};
BALL_CREATE(GridVisualisation)
GridVisualisation();
GridVisualisation(const GridVisualisation& plane);
virtual ~GridVisualisation(){};
const GridVisualisation& operator = (const GridVisualisation& plane);
const Vector3& getNormal() const { return normal_;}
void setNormal(const Vector3& normal) { normal_ = normal;}
const Vector3& getPoint() const { return point_;}
void setPoint(const Vector3& v) { point_ = v;}
void setGrid(const RegularData3D* grid) { grid_ = grid;}
const RegularData3D* getGrid() const { return grid_;}
Position getTexture() const { return texture_;}
void setTexture(Position texture) { texture_ = texture;}
void setDotSize(Size dot_size) { dot_size_ = dot_size;}
Size getDotSize() const { return dot_size_;}
Vector3 origin, x,y,z;
float max_dim;
Size slices;
vector<Vector3> points;
Type type;
bool draw_box;
protected:
Vector3 normal_;
Vector3 point_;
Position texture_;
const RegularData3D* grid_;
Size dot_size_;
};
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_KERNEL_CLIPPING_PLANE_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::GeometricObject::GeometricObject
GeometricObject()
BALL::VIEW::GridVisualisation
Definition gridVisualisation.h:27
BALL::VIEW::GridVisualisation::setGrid
void setGrid(const RegularData3D *grid)
Definition gridVisualisation.h:70
BALL::VIEW::GridVisualisation::origin
Vector3 origin
Definition gridVisualisation.h:87
BALL::VIEW::GridVisualisation::type
Type type
Definition gridVisualisation.h:91
BALL::VIEW::GridVisualisation::grid_
const RegularData3D * grid_
Definition gridVisualisation.h:99
BALL::VIEW::GridVisualisation::dot_size_
Size dot_size_
Definition gridVisualisation.h:100
BALL::VIEW::GridVisualisation::getDotSize
Size getDotSize() const
Definition gridVisualisation.h:85
BALL::VIEW::GridVisualisation::x
Vector3 x
Definition gridVisualisation.h:87
BALL::VIEW::GridVisualisation::setTexture
void setTexture(Position texture)
Definition gridVisualisation.h:79
BALL::VIEW::GridVisualisation::Type
Type
Definition gridVisualisation.h:31
BALL::VIEW::GridVisualisation::PLANE
@ PLANE
Definition gridVisualisation.h:33
BALL::VIEW::GridVisualisation::SLICES
@ SLICES
Definition gridVisualisation.h:36
BALL::VIEW::GridVisualisation::DOTS
@ DOTS
Definition gridVisualisation.h:39
BALL::VIEW::GridVisualisation::setNormal
void setNormal(const Vector3 &normal)
Definition gridVisualisation.h:61
BALL::VIEW::GridVisualisation::texture_
Position texture_
Definition gridVisualisation.h:98
BALL::VIEW::GridVisualisation::getNormal
const Vector3 & getNormal() const
Definition gridVisualisation.h:58
BALL::VIEW::GridVisualisation::getTexture
Position getTexture() const
Definition gridVisualisation.h:76
BALL::VIEW::GridVisualisation::z
Vector3 z
Definition gridVisualisation.h:87
BALL::VIEW::GridVisualisation::setPoint
void setPoint(const Vector3 &v)
Definition gridVisualisation.h:67
BALL::VIEW::GridVisualisation::GridVisualisation
GridVisualisation()
BALL::VIEW::GridVisualisation::normal_
Vector3 normal_
Definition gridVisualisation.h:96
BALL::VIEW::GridVisualisation::point_
Vector3 point_
Definition gridVisualisation.h:97
BALL::VIEW::GridVisualisation::slices
Size slices
Definition gridVisualisation.h:89
BALL::VIEW::GridVisualisation::getPoint
const Vector3 & getPoint() const
Definition gridVisualisation.h:64
BALL::VIEW::GridVisualisation::y
Vector3 y
Definition gridVisualisation.h:87
BALL::VIEW::GridVisualisation::getGrid
const RegularData3D * getGrid() const
Definition gridVisualisation.h:73
BALL::VIEW::GridVisualisation::draw_box
bool draw_box
Definition gridVisualisation.h:92
BALL::VIEW::GridVisualisation::points
vector< Vector3 > points
Definition gridVisualisation.h:90
BALL::VIEW::GridVisualisation::setDotSize
void setDotSize(Size dot_size)
Definition gridVisualisation.h:82
BALL::VIEW::GridVisualisation::max_dim
float max_dim
Definition gridVisualisation.h:88
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricObject.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::RegularData3D
TRegularData3D< float > RegularData3D
Definition regularData3D.h:515
BALL::Position
BALL_SIZE_TYPE Position
Definition COMMON/global.h:140
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
regularData3D.h