30 INLINE
explicit CollisionRay(
const LPoint3 &origin,
const LVector3 &direction);
31 INLINE
explicit CollisionRay(PN_stdfloat ox, PN_stdfloat oy, PN_stdfloat oz,
32 PN_stdfloat dx, PN_stdfloat dy, PN_stdfloat dz);
34 virtual LPoint3 get_collision_origin()
const;
43 virtual void xform(
const LMatrix4 &mat);
45 virtual void output(std::ostream &out)
const;
48 INLINE
void set_origin(
const LPoint3 &origin);
49 INLINE
void set_origin(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
50 INLINE
const LPoint3 &get_origin()
const;
51 MAKE_PROPERTY(origin, get_origin, set_origin);
53 INLINE
void set_direction(
const LVector3 &direction);
54 INLINE
void set_direction(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
55 INLINE
const LVector3 &get_direction()
const;
56 MAKE_PROPERTY(direction, get_direction, set_direction);
58 bool set_from_lens(
LensNode *camera,
const LPoint2 &point);
59 INLINE
bool set_from_lens(
LensNode *camera, PN_stdfloat px, PN_stdfloat py);
65 virtual void fill_viz_geom();
72 static void register_with_read_factory();
83 static void init_type() {
84 CollisionSolid::init_type();
86 CollisionSolid::get_class_type());
89 return get_class_type();
91 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
Defines a single collision event.
An infinite ray, with a specific origin and direction.
The abstract base class for all things that can collide with other things in the world,...
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A node that contains a Lens.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...