Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
animeventhandlerbase.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
20
#include "
messaging/handler.h
"
21
#include "
util/stringatom.h
"
22
#include "
animation/animeventinfo.h
"
23
24
//------------------------------------------------------------------------------
25
namespace
Animation
26
{
27
class
AnimEventHandlerBase
:
public
Messaging::Handler
28
{
29
__DeclareClass
(
AnimEventHandlerBase
);
30
public
:
32
AnimEventHandlerBase
();
34
virtual
~AnimEventHandlerBase
();
35
37
virtual
bool
HandleEvent
(
const
Animation::AnimEventInfo
& event);
38
40
virtual
void
OnFrame
(
Timing::Time
time);
41
43
void
SetCategoryName
(
const
Util::StringAtom
& catName);
45
const
Util::StringAtom
&
GetCategoryName
()
const
;
46
47
private
:
48
bool
isOpen
;
49
Util::StringAtom
categoryName
;
50
};
51
52
//------------------------------------------------------------------------------
55
inline
void
56
AnimEventHandlerBase::SetCategoryName
(
const
Util::StringAtom
& catName)
57
{
58
this->
categoryName
= catName;
59
}
60
61
//------------------------------------------------------------------------------
64
inline
const
Util::StringAtom
&
65
AnimEventHandlerBase::GetCategoryName
()
const
66
{
67
return
this->
categoryName
;
68
}
69
70
71
}
// namespace Debug
72
//------------------------------------------------------------------------------
animeventinfo.h
Animation::AnimEventHandlerBase::SetCategoryName
void SetCategoryName(const Util::StringAtom &catName)
set the category name
Definition
animeventhandlerbase.h:56
Animation::AnimEventHandlerBase::OnFrame
virtual void OnFrame(Timing::Time time)
optional on frame method
Definition
animeventhandlerbase.cc:46
Animation::AnimEventHandlerBase::categoryName
Util::StringAtom categoryName
Definition
animeventhandlerbase.h:49
Animation::AnimEventHandlerBase::__DeclareClass
__DeclareClass(AnimEventHandlerBase)
Animation::AnimEventHandlerBase::isOpen
bool isOpen
Definition
animeventhandlerbase.h:48
Animation::AnimEventHandlerBase::~AnimEventHandlerBase
virtual ~AnimEventHandlerBase()
destructor
Definition
animeventhandlerbase.cc:25
Animation::AnimEventHandlerBase::AnimEventHandlerBase
AnimEventHandlerBase()
constructor
Definition
animeventhandlerbase.cc:16
Animation::AnimEventHandlerBase::GetCategoryName
const Util::StringAtom & GetCategoryName() const
get the category name
Definition
animeventhandlerbase.h:65
Animation::AnimEventHandlerBase::HandleEvent
virtual bool HandleEvent(const Animation::AnimEventInfo &event)
handle a event
Definition
animeventhandlerbase.cc:34
Animation::AnimEventInfo
The AnimEventInfo has extra information of the animevent, like the animjob from which it is initiated...
Definition
animeventinfo.h:21
Messaging::Handler
Message handlers are used to process a message.
Definition
handler.h:20
Util::StringAtom
A StringAtom.
Definition
stringatom.h:22
handler.h
Animation
Definition
animeventhandlerbase.cc:10
Timing::Time
double Time
the time datatype
Definition
time.h:18
stringatom.h
code
render
animation
animeventhandlerbase.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.