Classes |
| class | PointDef |
Public Member Functions |
|
| CollisionPolygon (const LVecBase3 &a, const LVecBase3 &b, const LVecBase3 &c) |
|
| CollisionPolygon (const LVecBase3 &a, const LVecBase3 &b, const LVecBase3 &c, const LVecBase3 &d) |
|
| CollisionPolygon (const LPoint3 *begin, const LPoint3 *end) |
|
| CollisionPolygon (const CollisionPolygon ©) |
|
virtual TypeHandle | force_init_type () |
| virtual LPoint3 | get_collision_origin () const |
| | Returns the point in space deemed to be the "origin" of the solid for collision purposes.
|
| int | get_num_points () const |
| | Returns the number of vertices of the CollisionPolygon.
|
| LPoint3 | get_point (int n) const |
| | Returns the nth vertex of the CollisionPolygon, expressed in 3-D space.
|
| virtual PStatCollector & | get_test_pcollector () |
| | Returns a PStatCollector that is used to count the number of intersection tests made against a solid of this type in a given frame.
|
|
virtual TypeHandle | get_type () const |
| virtual PStatCollector & | get_volume_pcollector () |
| | Returns a PStatCollector that is used to count the number of bounding volume tests made against a solid of this type in a given frame.
|
| bool | is_concave () const |
| | Returns true if the CollisionPolygon appears to be concave, or false if it is safely convex.
|
| bool | is_valid () const |
| | Returns true if the CollisionPolygon is valid (that is, it has at least three vertices), or false otherwise.
|
|
virtual CollisionSolid * | make_copy () |
|
| MAKE_SEQ (get_points, get_num_points, get_point) |
|
virtual void | output (ostream &out) const |
|
virtual | PT (PandaNode) get_viz(const CullTraverser *trav |
|
virtual void | write (ostream &out, int indent_level=0) const |
| virtual void | write_datagram (BamWriter *manager, Datagram &me) |
| | Function to write the important information in the particular object to a Datagram.
|
| virtual void | xform (const LMatrix4 &mat) |
| | Transforms the solid by the indicated matrix.
|
Static Public Member Functions |
| static void | flush_level () |
| | Flushes the PStatCollectors used during traversal.
|
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static TypedWritable * | make_CollisionPolygon (const FactoryParams ¶ms) |
| | Factory method to generate a CollisionPolygon object.
|
| static void | register_with_read_factory () |
| | Factory method to generate a CollisionPolygon object.
|
| static bool | verify_points (const LPoint3 &a, const LPoint3 &b, const LPoint3 &c) |
| | Verifies that the indicated set of points will define a valid CollisionPolygon: that is, at least three non-collinear points, with no points repeated.
|
| static bool | verify_points (const LPoint3 &a, const LPoint3 &b, const LPoint3 &c, const LPoint3 &d) |
| | Verifies that the indicated set of points will define a valid CollisionPolygon: that is, at least three non-collinear points, with no points repeated.
|
| static bool | verify_points (const LPoint3 *begin, const LPoint3 *end) |
| | Verifies that the indicated set of points will define a valid CollisionPolygon: that is, at least three non-collinear points, with no points repeated.
|
Public Attributes |
virtual const
CullTraverserData bool
bounds_only | const |
|
virtual const CullTraverserData & | data |
Protected Member Functions |
| virtual void | fill_viz_geom () |
| | Fills the _viz_geom GeomNode up with Geoms suitable for rendering this solid.
|
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | Function that reads out of the datagram (or asks manager to read) all of the data that is needed to re-create this object and stores it in the appropiate place.
|
|
virtual | PT (BoundingVolume) compute_internal_bounds() const |
|
virtual | PT (CollisionEntry) test_intersection_from_sphere(const CollisionEntry &entry) const |
|
virtual | PT (CollisionEntry) test_intersection_from_line(const CollisionEntry &entry) const |
|
virtual | PT (CollisionEntry) test_intersection_from_ray(const CollisionEntry &entry) const |
|
virtual | PT (CollisionEntry) test_intersection_from_segment(const CollisionEntry &entry) const |
|
virtual | PT (CollisionEntry) test_intersection_from_parabola(const CollisionEntry &entry) const |
Definition at line 31 of file collisionPolygon.h.