Panda3D
panda
src
pgraphnodes
fadeLodNodeData.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file fadeLodNodeData.h
10
* @author drose
11
* @date 2004-09-29
12
*/
13
14
#ifndef FADELODNODEDATA_H
15
#define FADELODNODEDATA_H
16
17
#include "
pandabase.h
"
18
19
#include "
auxSceneData.h
"
20
21
/**
22
* This is the data that is associated with a particular instance of the
23
* FadeLODNode for the scene graph.
24
*/
25
class
EXPCL_PANDA_PGRAPHNODES
FadeLODNodeData
:
public
AuxSceneData
{
26
public
:
27
enum
FadeMode {
28
FM_solid,
29
FM_more_detail,
30
FM_less_detail,
31
};
32
FadeMode _fade_mode;
33
PN_stdfloat _fade_start;
34
int
_fade_out;
35
int
_fade_in;
36
37
virtual
void
output(std::ostream &out)
const
;
38
39
public
:
40
static
TypeHandle
get_class_type() {
41
return
_type_handle;
42
}
43
static
void
init_type() {
44
AuxSceneData::init_type();
45
register_type
(_type_handle,
"FadeLODNodeData"
,
46
AuxSceneData::get_class_type());
47
}
48
virtual
TypeHandle
get_type()
const
{
49
return
get_class_type();
50
}
51
virtual
TypeHandle
force_init_type() {init_type();
return
get_class_type();}
52
53
private
:
54
static
TypeHandle
_type_handle;
55
};
56
57
#endif
AuxSceneData
This is a base class for a generic data structure that can be attached per- instance to the camera,...
Definition:
auxSceneData.h:31
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
auxSceneData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition:
register_type.I:22
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
FadeLODNodeData
This is the data that is associated with a particular instance of the FadeLODNode for the scene graph...
Definition:
fadeLodNodeData.h:25
Generated on Sat Jan 11 2020 15:15:27 for Panda3D by
1.8.17