open_toontown_panda3d/panda/src/dgraph/vec4DataTransition.h

70 lines
2.1 KiB
C++

// Filename: vec4DataTransition.h
// Created by: jason (03Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license. You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#ifndef VEC4DATATRANSITION_H
#define VEC4DATATRANSITION_H
#include <pandabase.h>
#include "vectorDataTransition.h"
#include <luse.h>
// We need to define this temporary macro so we can pass a parameter
// containing a comma through the macro.
#define VECTORDATATRANSITION_LPOINT4F VectorDataTransition<LPoint4f>
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, VECTORDATATRANSITION_LPOINT4F);
////////////////////////////////////////////////////////////////////
// Class : Vec4DataTransition
// Description : A VectorDataTransition templated on LPoint4f.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA Vec4DataTransition :
public VectorDataTransition<LPoint4f> {
public:
INLINE Vec4DataTransition(const LPoint4f &value = LPoint4f(0.0, 0.0, 0.0, 0.0));
virtual NodeTransition *make_copy() const;
public:
virtual TypeHandle get_type() const {
return get_class_type();
}
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
static TypeHandle get_class_type() {
return _type_handle;
}
static void init_type() {
VectorDataTransition<LPoint4f>::init_type();
register_type(_type_handle, "Vec4DataTransition",
VectorDataTransition<LPoint4f>::get_class_type());
}
private:
static TypeHandle _type_handle;
};
#include "vec4DataTransition.I"
// Tell GCC that we'll take care of the instantiation explicitly here.
#ifdef __GNUC__
#pragma interface
#endif
#endif