14#ifndef COLLISIONPARABOLA_H
15#define COLLISIONPARABOLA_H
35 INLINE
explicit CollisionParabola(
const LParabola ¶bola, PN_stdfloat t1, PN_stdfloat t2);
41 virtual CollisionSolid *make_copy();
46 virtual void xform(
const LMatrix4 &mat);
51 virtual void output(std::ostream &out)
const;
57 INLINE
void set_t1(PN_stdfloat t1);
58 INLINE PN_stdfloat
get_t1()
const;
60 INLINE
void set_t2(PN_stdfloat t2);
61 INLINE PN_stdfloat
get_t2()
const;
72 virtual void fill_viz_geom();
93 static void init_type() {
94 CollisionSolid::init_type();
96 CollisionSolid::get_class_type());
98 virtual TypeHandle get_type()
const {
99 return get_class_type();
101 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
104 static TypeHandle _type_handle;
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.
get_t1
Returns the starting point on the parabola.
static void register_with_read_factory()
Factory method to generate a CollisionParabola object.
set_t1
Changes the starting point on the parabola.
set_parabola
Replaces the parabola specified by this solid.
get_t2
Returns the ending point on the parabola.
get_parabola
Returns the parabola specified by this solid.
CollisionParabola()
Creates an invalid parabola.
set_t2
Changes the ending point on the parabola.
virtual LPoint3 get_collision_origin() const
Returns the point in space deemed to be the "origin" of the solid for collision purposes.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
virtual PStatCollector & get_test_pcollector()
Returns a PStatCollector that is used to count the number of intersection tests made against a solid ...
virtual void xform(const LMatrix4 &mat)
Transforms the solid by the indicated matrix.
virtual PStatCollector & get_volume_pcollector()
Returns a PStatCollector that is used to count the number of bounding volume tests made against a sol...
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.
A lightweight class that represents a single element that may be timed and/or counted via stats.
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(),...