#include <vsol_tetrahedron.h>
Public Types | |
enum | vsol_spatial_object_3d_type { SPATIAL_NO_TYPE = 0, TOPOLOGYOBJECT, POINT, CURVE, REGION, SPATIALGROUP, VOLUME, NUM_SPATIALOBJECT_TYPES } |
Public Member Functions | |
vsol_tetrahedron (vsol_point_3d_sptr const &new_p0, vsol_point_3d_sptr const &new_p1, vsol_point_3d_sptr const &new_p2, vsol_point_3d_sptr const &new_p3) | |
Constructor from 4 points. | |
vsol_tetrahedron (vsol_tetrahedron const &other) | |
Copy constructor. | |
virtual | ~vsol_tetrahedron () |
Destructor. | |
virtual vsol_spatial_object_3d * | clone (void) const |
Clone `this': creation of a new object and initialization. | |
vsol_point_3d_sptr | p0 (void) const |
Return the first vertex. | |
vsol_point_3d_sptr | p1 (void) const |
Return the second vertex. | |
vsol_point_3d_sptr | p2 (void) const |
Return the third vertex. | |
vsol_point_3d_sptr | p3 (void) const |
Return the last vertex. | |
virtual double | volume (void) const |
Return the volume of `this'. | |
void | set_p0 (vsol_point_3d_sptr new_p0) |
Set the first vertex. | |
void | set_p1 (vsol_point_3d_sptr new_p1) |
Set the second vertex. | |
void | set_p2 (vsol_point_3d_sptr new_p2) |
Set the third vertex. | |
void | set_p3 (vsol_point_3d_sptr new_p3) |
Set the last vertex. | |
virtual bool | in (vsol_point_3d_sptr const &p) const |
Is `p' in `this' ?. | |
void | describe (vcl_ostream &strm, int blanking=0) const |
output description to stream. | |
virtual vcl_string | is_a () const |
Return a platform independent string identifying the class. | |
virtual bool | is_class (const vcl_string &cls) const |
Return true if the argument matches the string identifying the class or any parent class. | |
virtual vsol_polyhedron * | cast_to_polyhedron (void) |
Safe down-casting methods. | |
virtual vsol_polyhedron const * | cast_to_polyhedron (void) const |
virtual vsol_tetrahedron * | cast_to_tetrahedron (void) |
virtual const vsol_tetrahedron * | cast_to_tetrahedron (void) const |
vsol_point_3d_sptr | vertex (int i) const |
Return vertex `i'. | |
virtual bool | operator== (vsol_polyhedron const &other) const |
Is `this' spanning the same the same volume than `other' ?. | |
virtual bool | operator== (vsol_spatial_object_3d const &obj) const |
spatial object equality. | |
bool | operator!= (vsol_polyhedron const &o) const |
Negation of operator==. | |
bool | operator!= (vsol_spatial_object_3d const &obj) |
vsol_volume_3d_type | volume_type (void) const |
Return the volume type of a polyhedron. Its spatial type is a VOLUME. | |
virtual void | compute_bounding_box (void) const |
Compute the bounding box of `this'. | |
unsigned int | size (void) const |
Return the number of vertices. | |
unsigned int | num_vertices (void) const |
virtual bool | is_convex (void) const |
Is `this' convex ?. | |
bool | valid_index (unsigned int i) const |
Is `i' a valid index for the list of vertices ?. | |
void | b_write (vsl_b_ostream &os) const |
Binary save self to stream. | |
void | b_read (vsl_b_istream &is) |
Binary load self from stream. | |
short | version () const |
Return IO version number;. | |
void | print_summary (vcl_ostream &os) const |
Print an ascii summary to the stream. | |
virtual vsol_volume_3d * | cast_to_volume () |
virtual vsol_volume_3d const * | cast_to_volume () const |
vsol_spatial_object_3d_type | spatial_type (void) const |
Return the spatial type of `this'. | |
const char * | get_name () const |
void | un_protect () |
unprotect the object. | |
virtual void | print (vcl_ostream &strm=vcl_cout) const |
vsol_box_3d_sptr | get_bounding_box () const |
double | get_min_x () const |
double | get_max_x () const |
double | get_min_y () const |
double | get_max_y () const |
double | get_min_z () const |
double | get_max_z () const |
virtual vsol_spatial_object_3d * | cast_to_spatial_object () |
The same behavior than dynamic_cast<>. | |
virtual vsol_spatial_object_3d const * | cast_to_spatial_object () const |
virtual vtol_topology_object * | cast_to_topology_object () |
virtual vtol_topology_object const * | cast_to_topology_object () const |
virtual vsol_spatial_object_3d * | cast_to_vsol_spatial_object () |
virtual vsol_spatial_object_3d const * | cast_to_vsol_spatial_object () const |
virtual vsol_point_3d * | cast_to_point () |
virtual vsol_point_3d const * | cast_to_point () const |
virtual vsol_curve_3d * | cast_to_curve () |
virtual vsol_curve_3d const * | cast_to_curve () const |
virtual vsol_surface_3d * | cast_to_surface () |
virtual vsol_surface_3d const * | cast_to_surface () const |
virtual vsol_region_3d * | cast_to_region () |
virtual vsol_region_3d const * | cast_to_region () const |
virtual vsol_group_3d * | cast_to_group () |
virtual vsol_group_3d const * | cast_to_group () const |
void | touch () |
unsigned long | get_time_stamp () const |
bool | older (vul_timestamp const &t) const |
bool | older (vul_timestamp const *t) const |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
int | get_id () const |
get id of object. | |
void | set_id (int i) |
set id of object. | |
void | set_user_flag (unsigned int flag) |
set a flag for a spatial object; flag can be VSOL_FLAG[1-6]. | |
bool | get_user_flag (unsigned int flag) |
check if a flag is set for a spatial object; flag can be VSOL_FLAG[1-6]. | |
void | unset_user_flag (unsigned int flag) |
un-set a flag for a spatial object; flag can be VSOL_FLAG[1-6]. | |
void | set_tagged_union_flag () |
set the flag used by TAGGED_UNION. | |
bool | get_tagged_union_flag () |
check if the flag used by TAGGED_UNION is set. | |
void | unset_tagged_union_flag () |
un-set the flag used by TAGGED_UNION. | |
int | get_tag_id () |
void | set_tag_id (int id) |
Static Public Attributes | |
static const char * | SpatialTypes [] |
static const float | eps = 1.0e-3f |
Protected Types | |
enum | vsol_volume_3d_type { VOLUME_NO_TYPE = 0, POLYHEDRON, NUM_VOLUME_TYPES } |
Protected Member Functions | |
void | not_applicable (vcl_string const &message) const |
void | empty_bounding_box () const |
make the bounding box empty; often first step in bounding box calculation. | |
void | set_bounding_box (vsol_box_3d_sptr const &box) const |
set the bounding box; to be used in bounding box calculation. | |
void | set_bounding_box (double x, double y, double z) const |
set the bounding box to a single point, discarding the old bounding box. | |
void | add_to_bounding_box (double x, double y, double z) const |
add a point to the bounding box and take the convex union. | |
void | add_to_bounding_box (vsol_box_3d_sptr const &box) const |
set the existing bounding box to the convex union of it with the given box. | |
void | grow_minmax_bounds (vsol_box_3d_sptr const &b) const |
grow to the largest dim. of this and box, i.e., take the convex union. | |
void | check_update_bounding_box () const |
Test consistency of bound. | |
Protected Attributes | |
vcl_vector< vsol_point_3d_sptr > | storage_ |
List of vertices. | |
unsigned long | timestamp_ |
unsigned int | tag_ |
int | id_ |
Static Protected Attributes | |
static int | tagcount_ = 0 |
Friends | |
vcl_ostream & | operator<< (vcl_ostream &, vsol_spatial_object_3d const &) |
vcl_ostream & | operator<< (vcl_ostream &, vsol_spatial_object_3d const *) |
Definition at line 24 of file vsol_tetrahedron.h.
enum vsol_spatial_object_3d::vsol_spatial_object_3d_type [inherited] |
SPATIAL_NO_TYPE | |
TOPOLOGYOBJECT | |
POINT | |
CURVE | |
REGION | |
SPATIALGROUP | |
VOLUME | |
NUM_SPATIALOBJECT_TYPES |
Definition at line 90 of file vsol_spatial_object_3d.h.
enum vsol_volume_3d::vsol_volume_3d_type [protected, inherited] |
Definition at line 25 of file vsol_volume_3d.h.
vsol_tetrahedron::vsol_tetrahedron | ( | vsol_point_3d_sptr const & | new_p0, |
vsol_point_3d_sptr const & | new_p1, | ||
vsol_point_3d_sptr const & | new_p2, | ||
vsol_point_3d_sptr const & | new_p3 | ||
) |
Constructor from 4 points.
Constructor from its 4 vertices.
Definition at line 16 of file vsol_tetrahedron.cxx.
vsol_tetrahedron::vsol_tetrahedron | ( | vsol_tetrahedron const & | other | ) |
Copy constructor.
Definition at line 30 of file vsol_tetrahedron.cxx.
virtual vsol_tetrahedron::~vsol_tetrahedron | ( | ) | [inline, virtual] |
Destructor.
Definition at line 44 of file vsol_tetrahedron.h.
void vsol_spatial_object_3d::add_to_bounding_box | ( | double | x, |
double | y, | ||
double | z | ||
) | const [protected, inherited] |
add a point to the bounding box and take the convex union.
This is a "const" method since the bounding box is a "mutable" data member: calculating the bounding box does not change the object.
Definition at line 79 of file vsol_spatial_object_3d.cxx.
void vsol_spatial_object_3d::add_to_bounding_box | ( | vsol_box_3d_sptr const & | box | ) | const [protected, inherited] |
set the existing bounding box to the convex union of it with the given box.
Definition at line 84 of file vsol_spatial_object_3d.cxx.
void vsol_polyhedron::b_read | ( | vsl_b_istream & | is | ) | [virtual, inherited] |
Binary load self from stream.
Binary load self from stream (not typically used).
Reimplemented from vsol_spatial_object_3d.
Definition at line 154 of file vsol_polyhedron.cxx.
void vsol_polyhedron::b_write | ( | vsl_b_ostream & | os | ) | const [virtual, inherited] |
Binary save self to stream.
Reimplemented from vsol_spatial_object_3d.
Definition at line 145 of file vsol_polyhedron.cxx.
virtual vsol_curve_3d* vsol_spatial_object_3d::cast_to_curve | ( | ) | [inline, virtual, inherited] |
Reimplemented in vsol_curve_3d.
Definition at line 206 of file vsol_spatial_object_3d.h.
virtual vsol_curve_3d const* vsol_spatial_object_3d::cast_to_curve | ( | ) | const [inline, virtual, inherited] |
Reimplemented in vsol_curve_3d.
Definition at line 207 of file vsol_spatial_object_3d.h.
virtual vsol_group_3d* vsol_spatial_object_3d::cast_to_group | ( | void | ) | [inline, virtual, inherited] |
Reimplemented in vsol_group_3d, and vsol_group_3d.
Definition at line 214 of file vsol_spatial_object_3d.h.
virtual vsol_group_3d const* vsol_spatial_object_3d::cast_to_group | ( | void | ) | const [inline, virtual, inherited] |
Reimplemented in vsol_group_3d.
Definition at line 215 of file vsol_spatial_object_3d.h.
virtual vsol_point_3d* vsol_spatial_object_3d::cast_to_point | ( | void | ) | [inline, virtual, inherited] |
Reimplemented in vsol_point_3d, and vsol_point_3d.
Definition at line 204 of file vsol_spatial_object_3d.h.
virtual vsol_point_3d const* vsol_spatial_object_3d::cast_to_point | ( | void | ) | const [inline, virtual, inherited] |
Reimplemented in vsol_point_3d, and vsol_point_3d.
Definition at line 205 of file vsol_spatial_object_3d.h.
virtual vsol_polyhedron* vsol_polyhedron::cast_to_polyhedron | ( | void | ) | [inline, virtual, inherited] |
Safe down-casting methods.
Reimplemented from vsol_volume_3d.
Definition at line 68 of file vsol_polyhedron.h.
virtual vsol_polyhedron const* vsol_polyhedron::cast_to_polyhedron | ( | void | ) | const [inline, virtual, inherited] |
Reimplemented from vsol_volume_3d.
Definition at line 69 of file vsol_polyhedron.h.
virtual vsol_region_3d* vsol_spatial_object_3d::cast_to_region | ( | void | ) | [inline, virtual, inherited] |
Reimplemented in vsol_region_3d, and vsol_surface_3d.
Definition at line 212 of file vsol_spatial_object_3d.h.
virtual vsol_region_3d const* vsol_spatial_object_3d::cast_to_region | ( | void | ) | const [inline, virtual, inherited] |
Reimplemented in vsol_region_3d, vsol_region_3d, and vsol_surface_3d.
Definition at line 213 of file vsol_spatial_object_3d.h.
virtual vsol_spatial_object_3d* vsol_spatial_object_3d::cast_to_spatial_object | ( | ) | [inline, virtual, inherited] |
The same behavior than dynamic_cast<>.
Needed because VXL is not necessarily compiled with -frtti
Definition at line 196 of file vsol_spatial_object_3d.h.
virtual vsol_spatial_object_3d const* vsol_spatial_object_3d::cast_to_spatial_object | ( | ) | const [inline, virtual, inherited] |
Definition at line 197 of file vsol_spatial_object_3d.h.
virtual vsol_surface_3d* vsol_spatial_object_3d::cast_to_surface | ( | void | ) | [inline, virtual, inherited] |
Reimplemented in vsol_surface_3d.
Definition at line 208 of file vsol_spatial_object_3d.h.
virtual vsol_surface_3d const* vsol_spatial_object_3d::cast_to_surface | ( | void | ) | const [inline, virtual, inherited] |
Reimplemented in vsol_surface_3d, and vsol_surface_3d.
Definition at line 209 of file vsol_spatial_object_3d.h.
virtual vsol_tetrahedron* vsol_polyhedron::cast_to_tetrahedron | ( | void | ) | [inline, virtual, inherited] |
Definition at line 71 of file vsol_polyhedron.h.
virtual const vsol_tetrahedron* vsol_polyhedron::cast_to_tetrahedron | ( | void | ) | const [inline, virtual, inherited] |
Definition at line 72 of file vsol_polyhedron.h.
virtual vtol_topology_object* vsol_spatial_object_3d::cast_to_topology_object | ( | ) | [inline, virtual, inherited] |
Definition at line 199 of file vsol_spatial_object_3d.h.
virtual vtol_topology_object const* vsol_spatial_object_3d::cast_to_topology_object | ( | ) | const [inline, virtual, inherited] |
Definition at line 200 of file vsol_spatial_object_3d.h.
virtual vsol_volume_3d* vsol_volume_3d::cast_to_volume | ( | ) | [inline, virtual, inherited] |
Reimplemented from vsol_spatial_object_3d.
Definition at line 40 of file vsol_volume_3d.h.
virtual vsol_volume_3d const* vsol_volume_3d::cast_to_volume | ( | ) | const [inline, virtual, inherited] |
Reimplemented from vsol_spatial_object_3d.
Definition at line 41 of file vsol_volume_3d.h.
virtual vsol_spatial_object_3d* vsol_spatial_object_3d::cast_to_vsol_spatial_object | ( | ) | [inline, virtual, inherited] |
Definition at line 202 of file vsol_spatial_object_3d.h.
virtual vsol_spatial_object_3d const* vsol_spatial_object_3d::cast_to_vsol_spatial_object | ( | ) | const [inline, virtual, inherited] |
Definition at line 203 of file vsol_spatial_object_3d.h.
void vsol_spatial_object_3d::check_update_bounding_box | ( | ) | const [protected, inherited] |
Test consistency of bound.
Bounds Accessors:.
min_ and max_ are provided as methods on vsol_spatial_object_3d to be consistent with the previous interface Additional bounds accessors are available directly on vsol_box_3d. - JLM
Definition at line 97 of file vsol_spatial_object_3d.cxx.
virtual vsol_spatial_object_3d* vsol_tetrahedron::clone | ( | void | ) | const [inline, virtual] |
Clone `this': creation of a new object and initialization.
See Prototype pattern
Reimplemented from vsol_polyhedron.
Definition at line 49 of file vsol_tetrahedron.h.
void vsol_polyhedron::compute_bounding_box | ( | void | ) | const [virtual, inherited] |
Compute the bounding box of `this'.
Reimplemented from vsol_spatial_object_3d.
Definition at line 74 of file vsol_polyhedron.cxx.
void vsol_tetrahedron::describe | ( | vcl_ostream & | strm, |
int | blanking = 0 |
||
) | const [virtual] |
output description to stream.
Reimplemented from vsol_polyhedron.
Definition at line 137 of file vsol_tetrahedron.cxx.
void vsol_spatial_object_3d::empty_bounding_box | ( | ) | const [protected, inherited] |
make the bounding box empty; often first step in bounding box calculation.
Definition at line 64 of file vsol_spatial_object_3d.cxx.
vsol_box_3d_sptr vsol_spatial_object_3d::get_bounding_box | ( | ) | const [inline, inherited] |
Definition at line 161 of file vsol_spatial_object_3d.h.
int vsol_flags_id::get_id | ( | ) | const [inline, inherited] |
get id of object.
Definition at line 52 of file vsol_flags_id.h.
double vsol_spatial_object_3d::get_max_x | ( | ) | const [inherited] |
Reimplemented in vsol_orient_box_3d.
Definition at line 118 of file vsol_spatial_object_3d.cxx.
double vsol_spatial_object_3d::get_max_y | ( | ) | const [inherited] |
Reimplemented in vsol_orient_box_3d.
Definition at line 128 of file vsol_spatial_object_3d.cxx.
double vsol_spatial_object_3d::get_max_z | ( | ) | const [inherited] |
Reimplemented in vsol_orient_box_3d.
Definition at line 138 of file vsol_spatial_object_3d.cxx.
double vsol_spatial_object_3d::get_min_x | ( | ) | const [inherited] |
Reimplemented in vsol_orient_box_3d.
Definition at line 113 of file vsol_spatial_object_3d.cxx.
double vsol_spatial_object_3d::get_min_y | ( | ) | const [inherited] |
Reimplemented in vsol_orient_box_3d.
Definition at line 123 of file vsol_spatial_object_3d.cxx.
double vsol_spatial_object_3d::get_min_z | ( | ) | const [inherited] |
Reimplemented in vsol_orient_box_3d.
Definition at line 133 of file vsol_spatial_object_3d.cxx.
const char * vsol_spatial_object_3d::get_name | ( | ) | const [inherited] |
Definition at line 40 of file vsol_spatial_object_3d.cxx.
int vsol_flags_id::get_tag_id | ( | ) | [inline, inherited] |
Definition at line 106 of file vsol_flags_id.h.
bool vsol_flags_id::get_tagged_union_flag | ( | ) | [inline, inherited] |
check if the flag used by TAGGED_UNION is set.
Definition at line 95 of file vsol_flags_id.h.
bool vsol_flags_id::get_user_flag | ( | unsigned int | flag | ) | [inline, inherited] |
check if a flag is set for a spatial object; flag can be VSOL_FLAG[1-6].
Definition at line 77 of file vsol_flags_id.h.
void vsol_spatial_object_3d::grow_minmax_bounds | ( | vsol_box_3d_sptr const & | b | ) | const [inline, protected, inherited] |
grow to the largest dim. of this and box, i.e., take the convex union.
Definition at line 186 of file vsol_spatial_object_3d.h.
bool vsol_tetrahedron::in | ( | vsol_point_3d_sptr const & | p | ) | const [virtual] |
Is `p' in `this' ?.
Reimplemented from vsol_polyhedron.
Definition at line 131 of file vsol_tetrahedron.cxx.
virtual vcl_string vsol_tetrahedron::is_a | ( | ) | const [inline, virtual] |
Return a platform independent string identifying the class.
Reimplemented from vsol_polyhedron.
Definition at line 112 of file vsol_tetrahedron.h.
virtual bool vsol_tetrahedron::is_class | ( | const vcl_string & | cls | ) | const [inline, virtual] |
Return true if the argument matches the string identifying the class or any parent class.
Reimplemented from vsol_polyhedron.
Definition at line 115 of file vsol_tetrahedron.h.
bool vsol_polyhedron::is_convex | ( | void | ) | const [virtual, inherited] |
Is `this' convex ?.
Definition at line 96 of file vsol_polyhedron.cxx.
void vsol_spatial_object_3d::not_applicable | ( | vcl_string const & | message | ) | const [inline, protected, inherited] |
Definition at line 113 of file vsol_spatial_object_3d.h.
unsigned int vsol_polyhedron::num_vertices | ( | void | ) | const [inline, inherited] |
Definition at line 111 of file vsol_polyhedron.h.
bool vsol_polyhedron::operator!= | ( | vsol_polyhedron const & | o | ) | const [inline, inherited] |
Negation of operator==.
Definition at line 94 of file vsol_polyhedron.h.
bool vsol_spatial_object_3d::operator!= | ( | vsol_spatial_object_3d const & | obj | ) | [inline, inherited] |
Definition at line 157 of file vsol_spatial_object_3d.h.
bool vsol_polyhedron::operator== | ( | vsol_polyhedron const & | other | ) | const [virtual, inherited] |
Is `this' spanning the same the same volume than `other' ?.
Has `this' the same points than `other' in the same order ?.
Definition at line 42 of file vsol_polyhedron.cxx.
bool vsol_polyhedron::operator== | ( | vsol_spatial_object_3d const & | obj | ) | const [virtual, inherited] |
spatial object equality.
Reimplemented from vsol_spatial_object_3d.
Definition at line 65 of file vsol_polyhedron.cxx.
vsol_point_3d_sptr vsol_tetrahedron::p0 | ( | void | ) | const |
Return the first vertex.
Definition at line 41 of file vsol_tetrahedron.cxx.
vsol_point_3d_sptr vsol_tetrahedron::p1 | ( | void | ) | const |
Return the second vertex.
Definition at line 48 of file vsol_tetrahedron.cxx.
vsol_point_3d_sptr vsol_tetrahedron::p2 | ( | void | ) | const |
Return the third vertex.
Definition at line 55 of file vsol_tetrahedron.cxx.
vsol_point_3d_sptr vsol_tetrahedron::p3 | ( | void | ) | const |
Return the last vertex.
Definition at line 62 of file vsol_tetrahedron.cxx.
virtual void vsol_spatial_object_3d::print | ( | vcl_ostream & | strm = vcl_cout | ) | const [inline, virtual, inherited] |
Definition at line 149 of file vsol_spatial_object_3d.h.
void vsol_polyhedron::print_summary | ( | vcl_ostream & | os | ) | const [inherited] |
Print an ascii summary to the stream.
Definition at line 181 of file vsol_polyhedron.cxx.
void vsol_spatial_object_3d::set_bounding_box | ( | vsol_box_3d_sptr const & | box | ) | const [protected, inherited] |
set the bounding box; to be used in bounding box calculation.
Definition at line 74 of file vsol_spatial_object_3d.cxx.
void vsol_spatial_object_3d::set_bounding_box | ( | double | x, |
double | y, | ||
double | z | ||
) | const [protected, inherited] |
set the bounding box to a single point, discarding the old bounding box.
This is a "const" method since the bounding box is a "mutable" data member: calculating the bounding box does not change the object.
Definition at line 69 of file vsol_spatial_object_3d.cxx.
void vsol_flags_id::set_id | ( | int | i | ) | [inline, inherited] |
set id of object.
Definition at line 54 of file vsol_flags_id.h.
void vsol_tetrahedron::set_p0 | ( | vsol_point_3d_sptr | new_p0 | ) |
Set the first vertex.
Definition at line 94 of file vsol_tetrahedron.cxx.
void vsol_tetrahedron::set_p1 | ( | vsol_point_3d_sptr | new_p1 | ) |
Set the second vertex.
Definition at line 102 of file vsol_tetrahedron.cxx.
void vsol_tetrahedron::set_p2 | ( | vsol_point_3d_sptr | new_p2 | ) |
Set the third vertex.
Definition at line 110 of file vsol_tetrahedron.cxx.
void vsol_tetrahedron::set_p3 | ( | vsol_point_3d_sptr | new_p3 | ) |
Set the last vertex.
Definition at line 118 of file vsol_tetrahedron.cxx.
void vsol_flags_id::set_tag_id | ( | int | id | ) | [inline, inherited] |
Definition at line 111 of file vsol_flags_id.h.
void vsol_flags_id::set_tagged_union_flag | ( | ) | [inline, inherited] |
set the flag used by TAGGED_UNION.
Definition at line 89 of file vsol_flags_id.h.
void vsol_flags_id::set_user_flag | ( | unsigned int | flag | ) | [inline, inherited] |
set a flag for a spatial object; flag can be VSOL_FLAG[1-6].
Definition at line 71 of file vsol_flags_id.h.
unsigned int vsol_polyhedron::size | ( | void | ) | const [inline, inherited] |
Return the number of vertices.
Definition at line 110 of file vsol_polyhedron.h.
vsol_spatial_object_3d_type vsol_volume_3d::spatial_type | ( | void | ) | const [inline, virtual, inherited] |
Return the spatial type of `this'.
Implements vsol_spatial_object_3d.
Definition at line 52 of file vsol_volume_3d.h.
void vsol_spatial_object_3d::un_protect | ( | ) | [inline, inherited] |
unprotect the object.
Definition at line 128 of file vsol_spatial_object_3d.h.
void vsol_flags_id::unset_tagged_union_flag | ( | ) | [inline, inherited] |
un-set the flag used by TAGGED_UNION.
Definition at line 101 of file vsol_flags_id.h.
void vsol_flags_id::unset_user_flag | ( | unsigned int | flag | ) | [inline, inherited] |
un-set a flag for a spatial object; flag can be VSOL_FLAG[1-6].
Definition at line 83 of file vsol_flags_id.h.
bool vsol_polyhedron::valid_index | ( | unsigned int | i | ) | const [inline, inherited] |
Is `i' a valid index for the list of vertices ?.
Definition at line 123 of file vsol_polyhedron.h.
short vsol_polyhedron::version | ( | ) | const [inherited] |
Return IO version number;.
Reimplemented from vsol_spatial_object_3d.
Definition at line 175 of file vsol_polyhedron.cxx.
vsol_point_3d_sptr vsol_polyhedron::vertex | ( | int | i | ) | const [inherited] |
double vsol_tetrahedron::volume | ( | void | ) | const [virtual] |
Return the volume of `this'.
Reimplemented from vsol_polyhedron.
Definition at line 73 of file vsol_tetrahedron.cxx.
vsol_volume_3d_type vsol_polyhedron::volume_type | ( | void | ) | const [inline, inherited] |
Return the volume type of a polyhedron. Its spatial type is a VOLUME.
Reimplemented from vsol_volume_3d.
Definition at line 102 of file vsol_polyhedron.h.
vcl_ostream& operator<< | ( | vcl_ostream & | strm, |
vsol_spatial_object_3d const & | so | ||
) | [friend, inherited] |
Definition at line 220 of file vsol_spatial_object_3d.h.
vcl_ostream& operator<< | ( | vcl_ostream & | strm, |
vsol_spatial_object_3d const * | so | ||
) | [friend, inherited] |
Definition at line 226 of file vsol_spatial_object_3d.h.
const float vsol_spatial_object_3d::eps = 1.0e-3f [static, inherited] |
Definition at line 103 of file vsol_spatial_object_3d.h.
int vsol_flags_id::id_ [protected, inherited] |
Definition at line 39 of file vsol_flags_id.h.
const char * vsol_spatial_object_3d::SpatialTypes [static, inherited] |
{ "NO_TYPE ", "TOPOLOGYOBJECT ", "POINT ", "CURVE ", "REGION ", "SPATIALGROUP ", "NUM_SPATIALOBJECT_TYPES" }
Definition at line 102 of file vsol_spatial_object_3d.h.
vcl_vector<vsol_point_3d_sptr> vsol_polyhedron::storage_ [protected, inherited] |
List of vertices.
Definition at line 41 of file vsol_polyhedron.h.
unsigned int vsol_flags_id::tag_ [protected, inherited] |
Definition at line 38 of file vsol_flags_id.h.
int vsol_flags_id::tagcount_ = 0 [static, protected, inherited] |
Definition at line 40 of file vsol_flags_id.h.