59 lines
1.8 KiB
C++
59 lines
1.8 KiB
C++
// Filename: buttonEventDataTransition.h
|
|
// Created by: drose (08Feb99)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef BUTTONEVENTDATATRANSITION_H
|
|
#define BUTTONEVENTDATATRANSITION_H
|
|
|
|
#include <pandabase.h>
|
|
|
|
#include <nodeTransition.h>
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : ButtonEventDataTransition
|
|
// Description : A ButtonEventDataAttribute is a collection of buttons
|
|
// that have been pressed recently, in the order they
|
|
// were pressed. The ButtonEventDataTransition does
|
|
// nothing, since there's no sensible transformation to
|
|
// apply to this collection of buttons.
|
|
////////////////////////////////////////////////////////////////////
|
|
class EXPCL_PANDA ButtonEventDataTransition : public NodeTransition {
|
|
public:
|
|
INLINE ButtonEventDataTransition();
|
|
INLINE ButtonEventDataTransition(const ButtonEventDataTransition ©);
|
|
INLINE void operator = (const ButtonEventDataTransition ©);
|
|
|
|
public:
|
|
virtual NodeTransition *make_copy() const;
|
|
virtual NodeAttribute *make_attrib() const;
|
|
|
|
virtual NodeTransition *compose(const NodeTransition *other) const;
|
|
virtual NodeTransition *invert() const;
|
|
virtual NodeAttribute *apply(const NodeAttribute *attrib) const;
|
|
|
|
protected:
|
|
virtual int internal_compare_to(const NodeTransition *other) 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() {
|
|
NodeTransition::init_type();
|
|
register_type(_type_handle, "ButtonEventDataTransition",
|
|
NodeTransition::get_class_type());
|
|
}
|
|
|
|
private:
|
|
static TypeHandle _type_handle;
|
|
};
|
|
|
|
#include "buttonEventDataTransition.I"
|
|
|
|
#endif
|