open_toontown_panda3d/panda/src/sgraph/planeNode.h

64 lines
1.6 KiB
C++

// Filename: planeNode.h
// Created by: mike (09Jan97)
//
////////////////////////////////////////////////////////////////////
//
#ifndef PLANENODE_H
#define PLANENODE_H
//
////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////
#include <pandabase.h>
#include <namedNode.h>
#include <plane.h>
////////////////////////////////////////////////////////////////////
// Defines
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Class : PlaneNode
// Description : A node that has a plane
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA PlaneNode : public NamedNode
{
public:
INLINE PlaneNode(const string& name = "");
INLINE PlaneNode(const PlaneNode &copy);
INLINE void operator = (const PlaneNode &copy);
virtual Node *make_copy() const;
void set_plane(const Planef& plane);
const Planef& get_plane(void) const;
protected:
Planef _plane;
public:
static TypeHandle get_class_type( void ) {
return _type_handle;
}
static void init_type(void) {
NamedNode::init_type();
register_type(_type_handle, "PlaneNode",
NamedNode::get_class_type());
}
virtual TypeHandle get_type(void) const {
return get_class_type();
}
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
private:
static TypeHandle _type_handle;
};
#include "planeNode.I"
#endif