base class for shapes (Cylindre, Mesh, Sphere, Triangle,...)
More...
#include <Shape.h>
base class for shapes (Cylindre, Mesh, Sphere, Triangle,...)
Definition at line 56 of file Shape.h.
◆ Shape() [1/4]
Default constructor.
Definition at line 61 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 66 of file Shape.h.
◆ Shape() [3/4]
| Shape::Shape |
( |
Shape * |
other | ) |
|
|
inline |
Copy constructor.
Definition at line 71 of file Shape.h.
◆ ~Shape()
| virtual Shape::~Shape |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 81 of file Shape.h.
◆ Shape() [4/4]
| Shape::Shape |
( |
const Shape & |
other | ) |
|
|
inline |
Copy constructor.
Definition at line 83 of file Shape.h.
◆ Clone()
| virtual Shape* Shape::Clone |
( |
| ) |
|
|
inlinevirtual |
Clone and return a pointer to a Shape.
Reimplemented in Sphere.
Definition at line 93 of file Shape.h.
◆ form()
| virtual int Shape::form |
( |
| ) |
|
|
inlinevirtual |
◆ getBBox()
Return the bounding box.
Definition at line 117 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 133 of file Shape.h.
◆ getMaterial()
Return the pointed material.
Definition at line 99 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 194 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 179 of file Shape.h.
◆ setEtageId()
| void Shape::setEtageId |
( |
int |
id | ) |
|
|
inline |
Set/Get the floor id.
Definition at line 170 of file Shape.h.
◆ setFaceId()
| void Shape::setFaceId |
( |
int |
id | ) |
|
|
inline |
Set/Get the face id.
Definition at line 161 of file Shape.h.
◆ setIsSol()
| void Shape::setIsSol |
( |
const bool & |
isSol | ) |
|
|
inline |
◆ setMaterial()
Set the material.
Definition at line 104 of file Shape.h.
◆ setPrimitiveId()
| void Shape::setPrimitiveId |
( |
int |
id | ) |
|
|
inline |
Set/Get the primitive id.
Definition at line 151 of file Shape.h.
◆ setVertices()
| void Shape::setVertices |
( |
std::vector< vec3 > * |
_vertices | ) |
|
|
inline |
Set/Get global vertices.
Definition at line 123 of file Shape.h.
◆ updateBBox()
| virtual void Shape::updateBBox |
( |
| ) |
|
|
inlinevirtual |
Update the bounding box:
Reimplemented in Triangle.
Definition at line 115 of file Shape.h.
◆ _isSol
Triangle type (false = non natural, true = ground)
Definition at line 218 of file Shape.h.
◆ box
Bounding box of the shape.
Definition at line 210 of file Shape.h.
◆ buildingId
Index of the building supporting the primitive (-1 if none)
Definition at line 216 of file Shape.h.
◆ etageId
Index of the floor (etage) supporting the primitive (-1 if none)
Definition at line 217 of file Shape.h.
◆ faceId
Index of the face supporting the primitive.
Definition at line 215 of file Shape.h.
◆ localVertices
| std::vector<unsigned int> Shape::localVertices |
|
protected |
Index of the vertices used for this shape.
Definition at line 213 of file Shape.h.
◆ material
Pointer to material.
Definition at line 211 of file Shape.h.
◆ primitiveId
Index of the primitive (given by the scene)
Definition at line 214 of file Shape.h.
◆ vertices
| std::vector<vec3>* Shape::vertices |
|
protected |
GlobalVertices of the scene.
Definition at line 212 of file Shape.h.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/geometric_methods/AcousticRaytracer/Geometry/Shape.h