Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
#include <DrawShape.hpp>
Public Member Functions | |
Shape (const Transform3D *o2w, const Transform3D *w2o, bool ro) | |
Shape Constructor. More... | |
virtual BBox | ObjectBound () const =0 |
ObjectBound is the shape bounding box. More... | |
virtual BBox | WorldBound () const |
WorldBound is the Shape's Bounding box transformed by the ObjectToWorld transform matrix. More... | |
virtual bool | CanIntersect () const |
CanIntersect indicates that a shape can compute ray intersections, so only shapes that are nonintersectable need to override this method. More... | |
virtual void | Refine (Vector< std::shared_ptr< Shape > > &refined) const |
Refine is a method that splits the shape into a group of new shapes, some of which may be intersectable and some of which may need further refinement. More... | |
virtual bool | Intersect (const Ray &ray, float *tHit, float *rayEpsilon, DifferentialGeometry *dg) const |
Intersect returns geometric information about a single rayshape intersection corresponding to the first intersection, if any, in the [mint, maxt] parametric range along the ray. More... | |
virtual bool | IntersectP (const Ray &ray) const |
IntersectP is a predicate function that determines whether or not an intersection occurs, without returning any details about the intersection itself. More... | |
virtual void | GetShadingGeometry (const Transform3D &obj2world, const DifferentialGeometry &dg, DifferentialGeometry *dgShading) const |
GetShadingGeometry. More... | |
float | Area () const |
Area calculates the surface Area. More... | |
template<class O > | |
void | Print (O &os) const |
Print assings Shape information to stream. More... | |
Public Attributes | |
const Transform3D * | ObjectToWorld |
ObjectToWorld is the object's transformation matrix. More... | |
const Transform3D * | WorldToObject |
WorldToObject is the inverse object's transformation matrix. More... | |
const bool | ReverseOrientation |
ReverseOrientation indicates whether their surface normal directions should be reversed from the default. More... | |
const bool | TransformSwapsHandedness |
TransformSwapsHandedness stores the result of the Transform::SwapsHandedness() call for their objecttoworld transformation. More... | |
const uint32_t | shapeId |
shapeId is the Shape's unique id. More... | |
Static Public Attributes | |
static uint32_t | nextShapeId |
nextShapeId is a static attribute that is incremented at each Shape Construction. More... | |
Definition at line 25 of file DrawShape.hpp.
Bial::Shape::Shape | ( | const Transform3D * | o2w, |
const Transform3D * | w2o, | ||
bool | ro | ||
) |
float Bial::Shape::Area | ( | ) | const |
Area calculates the surface Area.
|
virtual |
CanIntersect indicates that a shape can compute ray intersections, so only shapes that are nonintersectable need to override this method.
Reimplemented in Bial::TriangleMesh.
|
virtual |
|
virtual |
Intersect returns geometric information about a single rayshape intersection corresponding to the first intersection, if any, in the [mint, maxt] parametric range along the ray.
ray | |
tHit | |
rayEpsilon | |
dg |
Reimplemented in Bial::Triangle.
IntersectP is a predicate function that determines whether or not an intersection occurs, without returning any details about the intersection itself.
ray |
|
pure virtual |
ObjectBound is the shape bounding box.
Implemented in Bial::Triangle, and Bial::TriangleMesh.
void Bial::Shape::Print | ( | O & | os | ) | const |
Print assings Shape information to stream.
os | an output stream. |
Definition at line 356 of file DrawShape.hpp.
Refine is a method that splits the shape into a group of new shapes, some of which may be intersectable and some of which may need further refinement.
refined |
Reimplemented in Bial::TriangleMesh.
|
virtual |
WorldBound is the Shape's Bounding box transformed by the ObjectToWorld transform matrix.
Reimplemented in Bial::Triangle, and Bial::TriangleMesh.
|
static |
nextShapeId is a static attribute that is incremented at each Shape Construction.
Definition at line 54 of file DrawShape.hpp.
const Transform3D* Bial::Shape::ObjectToWorld |
ObjectToWorld is the object's transformation matrix.
Definition at line 32 of file DrawShape.hpp.
const bool Bial::Shape::ReverseOrientation |
ReverseOrientation indicates whether their surface normal directions should be reversed from the default.
Definition at line 41 of file DrawShape.hpp.
const uint32_t Bial::Shape::shapeId |
shapeId is the Shape's unique id.
Definition at line 50 of file DrawShape.hpp.
const bool Bial::Shape::TransformSwapsHandedness |
TransformSwapsHandedness stores the result of the Transform::SwapsHandedness() call for their objecttoworld transformation.
Definition at line 46 of file DrawShape.hpp.
const Transform3D* Bial::Shape::WorldToObject |
WorldToObject is the inverse object's transformation matrix.
Definition at line 36 of file DrawShape.hpp.