base class for shapes (Cylindre, Mesh, Sphere, Triangle,...)
More...
#include <Shape.h>
base class for shapes (Cylindre, Mesh, Sphere, Triangle,...)
Definition at line 57 of file Shape.h.
◆ Shape() [1/4]
Default constructor.
Definition at line 62 of file Shape.h.
◆ Shape() [2/4]
Shape::Shape |
( |
const std::string |
_name | ) |
|
|
inline |
Constructor by giving a name to the Shape.
Definition at line 64 of file Shape.h.
◆ Shape() [3/4]
Shape::Shape |
( |
Shape * |
other | ) |
|
|
inline |
Copy constructor.
Definition at line 66 of file Shape.h.
◆ ~Shape()
virtual Shape::~Shape |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 76 of file Shape.h.
◆ Shape() [4/4]
Shape::Shape |
( |
const Shape & |
other | ) |
|
|
inline |
Copy constructor.
Definition at line 78 of file Shape.h.
◆ Clone()
virtual Shape* Shape::Clone |
( |
| ) |
|
|
inlinevirtual |
Clone and return a pointer to a Shape.
Reimplemented in Sphere.
Definition at line 88 of file Shape.h.
◆ form()
virtual int Shape::form |
( |
| ) |
|
|
inlinevirtual |
◆ getBBox()
Return the bounding box.
Definition at line 102 of file Shape.h.
◆ getBuildingId()
int Shape::getBuildingId |
( |
| ) |
|
|
inline |
◆ getEtageId()
int Shape::getEtageId |
( |
| ) |
|
|
inline |
◆ getFaceId()
int Shape::getFaceId |
( |
| ) |
const |
|
inline |
◆ getIntersection()
◆ getLocalVertices()
vector<unsigned int>* Shape::getLocalVertices |
( |
| ) |
|
|
inline |
Get local vertices.
Definition at line 109 of file Shape.h.
◆ getMaterial()
Return the pointed material.
Definition at line 94 of file Shape.h.
◆ getNormal()
virtual vec3 Shape::getNormal |
( |
const vec3 |
pos = vec3() | ) |
|
|
inlinevirtual |
◆ getPrimitiveId()
int Shape::getPrimitiveId |
( |
| ) |
const |
|
inline |
◆ getVertices()
vector<vec3>* Shape::getVertices |
( |
| ) |
|
|
inline |
◆ isSol()
bool Shape::isSol |
( |
| ) |
const |
|
inline |
Get/Set the flag _isSol (ground or not)
Definition at line 134 of file Shape.h.
◆ isVisible()
virtual bool Shape::isVisible |
( |
| ) |
|
|
inlinevirtual |
◆ sample()
virtual bool Shape::sample |
( |
decimal |
density, |
|
|
std::vector< vec3 > & |
samples |
|
) |
| |
|
inlinevirtual |
◆ setBuildingId()
void Shape::setBuildingId |
( |
int |
id | ) |
|
|
inline |
Set/Get the building id.
Definition at line 128 of file Shape.h.
◆ setEtageId()
void Shape::setEtageId |
( |
int |
id | ) |
|
|
inline |
Set/Get the floor id.
Definition at line 125 of file Shape.h.
◆ setFaceId()
void Shape::setFaceId |
( |
int |
id | ) |
|
|
inline |
Set/Get the face id.
Definition at line 122 of file Shape.h.
◆ setIsSol()
void Shape::setIsSol |
( |
const bool & |
isSol | ) |
|
|
inline |
◆ setMaterial()
Set the material.
Definition at line 96 of file Shape.h.
◆ setPrimitiveId()
void Shape::setPrimitiveId |
( |
int |
id | ) |
|
|
inline |
Set/Get the primitive id.
Definition at line 118 of file Shape.h.
◆ setVertices()
void Shape::setVertices |
( |
std::vector< vec3 > * |
_vertices | ) |
|
|
inline |
Set/Get global vertices.
Definition at line 105 of file Shape.h.
◆ updateBBox()
virtual void Shape::updateBBox |
( |
| ) |
|
|
inlinevirtual |
Update the bounding box:
Reimplemented in Triangle.
Definition at line 100 of file Shape.h.
◆ _isSol
Triangle type (false = non natural, true = ground)
Definition at line 149 of file Shape.h.
◆ box
Bounding box of the shape.
Definition at line 141 of file Shape.h.
◆ buildingId
Index of the building supporting the primitive (-1 if none)
Definition at line 147 of file Shape.h.
◆ etageId
Index of the floor (etage) supporting the primitive (-1 if none)
Definition at line 148 of file Shape.h.
◆ faceId
Index of the face supporting the primitive.
Definition at line 146 of file Shape.h.
◆ localVertices
std::vector<unsigned int> Shape::localVertices |
|
protected |
Index of the vertices used for this shape.
Definition at line 144 of file Shape.h.
◆ material
Pointer to material.
Definition at line 142 of file Shape.h.
◆ primitiveId
Index of the primitive (given by the scene)
Definition at line 145 of file Shape.h.
◆ vertices
std::vector<vec3>* Shape::vertices |
|
protected |
GlobalVertices of the scene.
Definition at line 143 of file Shape.h.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/codetympan/checkouts/latest/Tympan/geometric_methods/AcousticRaytracer/Geometry/Shape.h