Loading...
Searching...
No Matches
quadMesh.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: quadMesh.h,v 1.1.4.1 2007-03-25 21:26:11 oliver Exp $
//
#ifndef BALL_VIEW_PRIMITIV_QUADMESH_H
#define BALL_VIEW_PRIMITIV_QUADMESH_H
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
#ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
# include <BALL/VIEW/DATATYPE/colorExtensions.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT QuadMesh
: public GeometricObject,
public MultiColorExtension
{
public:
struct Quadruple
{
Quadruple(Position p1, Position p2, Position p3, Position p4)
{
q1 = p1; q2 = p2; q3 = p3; q4 = p4;
}
Position q1, q2, q3, q4;
};
BALL_CREATE(QuadMesh)
QuadMesh();
QuadMesh(const QuadMesh& mesh);
~QuadMesh(){}
// Method to get all vertices from a geometric object
virtual void getVertices(vector<Vector3>& vertices) const { vertices = vertex;}
vector<Vector3> vertex;
vector<Vector3> normal;
vector<Quadruple> quad;
};
} } // namespaces
#endif // BALL_VIEW_PRIMITIV_QUADMESH_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::GeometricObject::GeometricObject
GeometricObject()
BALL::VIEW::MultiColorExtension::MultiColorExtension
MultiColorExtension()
BALL::VIEW::QuadMesh::vertex
vector< Vector3 > vertex
Definition quadMesh.h:67
BALL::VIEW::QuadMesh::quad
vector< Quadruple > quad
Definition quadMesh.h:69
BALL::VIEW::QuadMesh::QuadMesh
QuadMesh()
BALL::VIEW::QuadMesh::normal
vector< Vector3 > normal
Definition quadMesh.h:68
BALL::VIEW::QuadMesh::getVertices
virtual void getVertices(vector< Vector3 > &vertices) const
Definition quadMesh.h:61
colorExtensions.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricObject.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Position
BALL_SIZE_TYPE Position
Definition COMMON/global.h:140
BALL::VIEW::QuadMesh::Quadruple::q1
Position q1
Definition quadMesh.h:43
BALL::VIEW::QuadMesh::Quadruple::Quadruple
Quadruple(Position p1, Position p2, Position p3, Position p4)
Definition quadMesh.h:37
BALL::VIEW::QuadMesh::Quadruple::q2
Position q2
Definition quadMesh.h:43
BALL::VIEW::QuadMesh::Quadruple::q3
Position q3
Definition quadMesh.h:43
BALL::VIEW::QuadMesh::Quadruple::q4
Position q4
Definition quadMesh.h:43