open_toontown_panda3d/panda/src/display/displayRegionCullCallbackDa...

67 lines
1.9 KiB
C++

// Filename: displayRegionCullCallbackData.h
// Created by: drose (14Mar09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef DISPLAYREGIONCULLCALLBACKDATA_H
#define DISPLAYREGIONCULLCALLBACKDATA_H
#include "pandabase.h"
#include "callbackData.h"
class CullHandler;
class SceneSetup;
////////////////////////////////////////////////////////////////////
// Class : DisplayRegionCullCallbackData
// Description : This specialization on CallbackData is passed when
// the callback is initiated from the cull traversal,
// for a DisplayRegion.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA_PGRAPH DisplayRegionCullCallbackData : public CallbackData {
public:
DisplayRegionCullCallbackData(CullHandler *cull_handler, SceneSetup *scene_setup);
PUBLISHED:
virtual void output(ostream &out) const;
INLINE CullHandler *get_cull_handler() const;
INLINE SceneSetup *get_scene_setup() const;
virtual void upcall();
private:
CullHandler *_cull_handler;
SceneSetup *_scene_setup;
public:
static TypeHandle get_class_type() {
return _type_handle;
}
static void init_type() {
CallbackData::init_type();
register_type(_type_handle, "DisplayRegionCullCallbackData",
CallbackData::get_class_type());
}
virtual TypeHandle get_type() const {
return get_class_type();
}
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
private:
static TypeHandle _type_handle;
};
#include "displayRegionCullCallbackData.I"
#endif