15 #ifndef COLLISIONSEGMENT_H
16 #define COLLISIONSEGMENT_H
18 #include "pandabase.h"
20 #include "collisionSolid.h"
39 INLINE CollisionSegment(PN_stdfloat ax, PN_stdfloat ay, PN_stdfloat az,
40 PN_stdfloat bx, PN_stdfloat by, PN_stdfloat bz);
42 virtual LPoint3 get_collision_origin()
const;
45 INLINE CollisionSegment(
const CollisionSegment ©);
53 virtual void output(ostream &out)
const;
56 INLINE
void set_point_a(
const LPoint3 &a);
57 INLINE
void set_point_a(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
58 INLINE
const LPoint3 &get_point_a()
const;
60 INLINE
void set_point_b(
const LPoint3 &b);
61 INLINE
void set_point_b(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
62 INLINE
const LPoint3 &get_point_b()
const;
65 INLINE
bool set_from_lens(
LensNode *camera, PN_stdfloat px, PN_stdfloat py);
71 virtual void fill_viz_geom();
77 static void register_with_read_factory();
88 static void init_type() {
89 CollisionSolid::init_type();
90 register_type(_type_handle,
"CollisionSegment",
91 CollisionSolid::get_class_type());
94 return get_class_type();
96 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
102 #include "collisionSegment.I"
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
The abstract base class for all things that can collide with other things in the world, and all the things they can collide with (except geometry).
A node that contains a Lens.
Base class for objects that can be written to and read from Bam files.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
A finite line segment, with two specific endpoints but no thickness.
This is a 4-by-4 transform matrix.
Defines a single collision event.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual void xform(const LMatrix4 &mat)
Transforms the solid by the indicated matrix.
A class to retrieve the individual data elements previously stored in a Datagram. ...
This is a two-component point in space.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...