14#ifndef __LERPBLEND_H__
15#define __LERPBLEND_H__
20class EXPCL_DIRECT_INTERVAL LerpBlendType :
public TypedReferenceCount {
23 virtual ~LerpBlendType();
24 virtual PN_stdfloat operator()(PN_stdfloat) = 0;
27 LerpBlendType(
const LerpBlendType&);
28 LerpBlendType& operator=(
const LerpBlendType&);
34 static void init_type() {
35 TypedReferenceCount::init_type();
37 TypedReferenceCount::get_class_type());
40 return get_class_type();
44 return get_class_type();
50class EXPCL_DIRECT_INTERVAL EaseInBlendType :
public LerpBlendType {
53 virtual ~EaseInBlendType();
54 virtual PN_stdfloat operator()(PN_stdfloat);
57 EaseInBlendType(
const EaseInBlendType&);
58 EaseInBlendType& operator=(
const EaseInBlendType&);
64 static void init_type() {
65 TypedReferenceCount::init_type();
67 LerpBlendType::get_class_type());
70 return get_class_type();
74 return get_class_type();
80class EXPCL_DIRECT_INTERVAL EaseOutBlendType :
public LerpBlendType {
83 virtual ~EaseOutBlendType();
84 virtual PN_stdfloat operator()(PN_stdfloat);
87 EaseOutBlendType(
const EaseOutBlendType&);
88 EaseOutBlendType& operator=(
const EaseOutBlendType&);
94 static void init_type() {
95 TypedReferenceCount::init_type();
97 LerpBlendType::get_class_type());
100 return get_class_type();
104 return get_class_type();
110class EXPCL_DIRECT_INTERVAL EaseInOutBlendType :
public LerpBlendType {
112 EaseInOutBlendType() {}
113 virtual ~EaseInOutBlendType();
114 virtual PN_stdfloat operator()(PN_stdfloat);
116 EaseInOutBlendType(
const EaseInOutBlendType&);
117 EaseInOutBlendType& operator=(
const EaseInOutBlendType&);
123 static void init_type() {
124 TypedReferenceCount::init_type();
126 LerpBlendType::get_class_type());
129 return get_class_type();
133 return get_class_type();
139class EXPCL_DIRECT_INTERVAL NoBlendType :
public LerpBlendType {
142 virtual ~NoBlendType();
143 virtual PN_stdfloat operator()(PN_stdfloat);
145 NoBlendType(
const NoBlendType&);
146 NoBlendType& operator=(
const NoBlendType&);
152 static void init_type() {
153 TypedReferenceCount::init_type();
155 LerpBlendType::get_class_type());
158 return get_class_type();
162 return get_class_type();
TypeHandle is the identifier used to differentiate C++ class types.
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.