FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::RendererNode Class Reference

#include <renderernode.h>

+ Collaboration diagram for FIFE::RendererNode:

Public Member Functions

 RendererNode (Instance *attached_instance, const Location &relative_location, Layer *relative_layer, const Point &relative_point=Point(0, 0))
 
 RendererNode (Instance *attached_instance, const Location &relative_location, const Point &relative_point=Point(0, 0))
 
 RendererNode (Instance *attached_instance, Layer *relative_layer, const Point &relative_point=Point(0, 0))
 
 RendererNode (Instance *attached_instance, const Point &relative_point=Point(0, 0))
 
 RendererNode (const Location &attached_location, Layer *relative_layer, const Point &relative_point=Point(0, 0))
 
 RendererNode (const Location &attached_location, const Point &relative_point=Point(0, 0))
 
 RendererNode (Layer *attached_layer, const Point &relative_point=Point(0, 0))
 
 RendererNode (const Point &attached_point)
 
 RendererNode (const RendererNode &old)
 
RendererNodeoperator= (const RendererNode &source)
 
 ~RendererNode ()
 
void setAttached (Instance *attached_instance, const Location &relative_location, const Point &relative_point)
 
void setAttached (Instance *attached_instance, const Location &relative_location)
 
void setAttached (Instance *attached_instance, const Point &relative_point)
 
void setAttached (Instance *attached_instance)
 
void setAttached (const Location &attached_location, const Point &relative_point)
 
void setAttached (const Location &attached_location)
 
void setAttached (Layer *attached_layer)
 
void setAttached (const Point &attached_point)
 
void setRelative (const Location &relative_location)
 
void setRelative (const Location &relative_location, Point relative_point)
 
void setRelative (const Point &relative_point)
 
InstancegetAttachedInstance ()
 
Location getAttachedLocation ()
 
LayergetAttachedLayer ()
 
Point getAttachedPoint ()
 
Location getOffsetLocation ()
 
Point getOffsetPoint ()
 
InstancegetInstance ()
 
Location getLocation ()
 
const LocationgetLocationRef ()
 
LayergetLayer ()
 
Point getPoint ()
 
const PointgetPointRef ()
 
void addInstance (Instance *instance)
 
void changeInstance (Instance *instance)
 
void removeInstance (Instance *instance, bool listener=true)
 
Point getCalculatedPoint (Camera *cam, Layer *layer, const bool zoomed=false)
 

Private Member Functions

void checkDeleteListener ()
 

Private Attributes

Instancem_instance
 
Location m_location
 
Layerm_layer
 
Point m_point
 
InstanceDeleteListenerm_listener
 

Detailed Description

Definition at line 39 of file renderernode.h.

Constructor & Destructor Documentation

◆ RendererNode() [1/9]

FIFE::RendererNode::RendererNode ( Instance attached_instance,
const Location relative_location,
Layer relative_layer,
const Point relative_point = Point(0,0) 
)

Definition at line 59 of file renderernode.cpp.

References addInstance().

◆ RendererNode() [2/9]

FIFE::RendererNode::RendererNode ( Instance attached_instance,
const Location relative_location,
const Point relative_point = Point(0,0) 
)

Definition at line 67 of file renderernode.cpp.

References addInstance().

◆ RendererNode() [3/9]

FIFE::RendererNode::RendererNode ( Instance attached_instance,
Layer relative_layer,
const Point relative_point = Point(0,0) 
)

Definition at line 75 of file renderernode.cpp.

References addInstance().

◆ RendererNode() [4/9]

FIFE::RendererNode::RendererNode ( Instance attached_instance,
const Point relative_point = Point(0,0) 
)

Definition at line 83 of file renderernode.cpp.

References addInstance().

◆ RendererNode() [5/9]

FIFE::RendererNode::RendererNode ( const Location attached_location,
Layer relative_layer,
const Point relative_point = Point(0,0) 
)

Definition at line 91 of file renderernode.cpp.

◆ RendererNode() [6/9]

FIFE::RendererNode::RendererNode ( const Location attached_location,
const Point relative_point = Point(0,0) 
)

Definition at line 98 of file renderernode.cpp.

◆ RendererNode() [7/9]

FIFE::RendererNode::RendererNode ( Layer attached_layer,
const Point relative_point = Point(0,0) 
)

Definition at line 105 of file renderernode.cpp.

◆ RendererNode() [8/9]

FIFE::RendererNode::RendererNode ( const Point attached_point)

Definition at line 112 of file renderernode.cpp.

◆ RendererNode() [9/9]

FIFE::RendererNode::RendererNode ( const RendererNode old)

Definition at line 119 of file renderernode.cpp.

References addInstance(), and m_instance.

◆ ~RendererNode()

FIFE::RendererNode::~RendererNode ( )

Definition at line 136 of file renderernode.cpp.

References m_instance, m_listener, and removeInstance().

Member Function Documentation

◆ addInstance()

void FIFE::RendererNode::addInstance ( Instance instance)

Definition at line 252 of file renderernode.cpp.

References FIFE::Instance::addDeleteListener(), checkDeleteListener(), m_instance, and m_listener.

Referenced by RendererNode().

+ Here is the caller graph for this function:

◆ changeInstance()

void FIFE::RendererNode::changeInstance ( Instance instance)

Definition at line 260 of file renderernode.cpp.

References FIFE::Instance::addDeleteListener(), checkDeleteListener(), m_instance, m_listener, and FIFE::Instance::removeDeleteListener().

Referenced by operator=(), and setAttached().

+ Here is the caller graph for this function:

◆ checkDeleteListener()

void FIFE::RendererNode::checkDeleteListener ( )
private

Definition at line 283 of file renderernode.cpp.

References m_listener.

Referenced by addInstance(), and changeInstance().

+ Here is the caller graph for this function:

◆ getAttachedInstance()

Instance * FIFE::RendererNode::getAttachedInstance ( )

Definition at line 195 of file renderernode.cpp.

References FIFE::_log, FL_WARN, and m_instance.

◆ getAttachedLayer()

Layer * FIFE::RendererNode::getAttachedLayer ( )

Definition at line 207 of file renderernode.cpp.

References FIFE::_log, FL_WARN, and m_layer.

◆ getAttachedLocation()

Location FIFE::RendererNode::getAttachedLocation ( )

Definition at line 201 of file renderernode.cpp.

References FIFE::_log, FL_WARN, m_instance, and m_location.

◆ getAttachedPoint()

Point FIFE::RendererNode::getAttachedPoint ( )

Definition at line 213 of file renderernode.cpp.

References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.

◆ getCalculatedPoint()

◆ getInstance()

Instance * FIFE::RendererNode::getInstance ( )

Definition at line 233 of file renderernode.cpp.

References m_instance.

◆ getLayer()

◆ getLocation()

Location FIFE::RendererNode::getLocation ( )

Definition at line 236 of file renderernode.cpp.

References m_location.

◆ getLocationRef()

const Location & FIFE::RendererNode::getLocationRef ( )

Definition at line 239 of file renderernode.cpp.

References m_location.

◆ getOffsetLocation()

Location FIFE::RendererNode::getOffsetLocation ( )

Definition at line 220 of file renderernode.cpp.

References FIFE::_log, FL_WARN, m_instance, and m_location.

◆ getOffsetPoint()

Point FIFE::RendererNode::getOffsetPoint ( )

Definition at line 226 of file renderernode.cpp.

References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.

◆ getPoint()

Point FIFE::RendererNode::getPoint ( )

Definition at line 245 of file renderernode.cpp.

References m_point.

◆ getPointRef()

const Point & FIFE::RendererNode::getPointRef ( )

Definition at line 248 of file renderernode.cpp.

References m_point.

◆ operator=()

RendererNode & FIFE::RendererNode::operator= ( const RendererNode source)

Definition at line 127 of file renderernode.cpp.

References changeInstance(), m_instance, m_layer, m_location, and m_point.

◆ removeInstance()

void FIFE::RendererNode::removeInstance ( Instance instance,
bool  listener = true 
)

Definition at line 274 of file renderernode.cpp.

References m_instance, m_listener, and FIFE::Instance::removeDeleteListener().

Referenced by FIFE::NodeInstanceDeleteListener::onInstanceDeleted(), and ~RendererNode().

+ Here is the caller graph for this function:

◆ setAttached() [1/8]

void FIFE::RendererNode::setAttached ( Instance attached_instance,
const Location relative_location,
const Point relative_point 
)

Definition at line 141 of file renderernode.cpp.

References changeInstance(), m_location, and m_point.

Referenced by getCalculatedPoint().

+ Here is the caller graph for this function:

◆ setAttached() [2/8]

void FIFE::RendererNode::setAttached ( Instance attached_instance,
const Location relative_location 
)

Definition at line 146 of file renderernode.cpp.

References changeInstance(), and m_location.

◆ setAttached() [3/8]

void FIFE::RendererNode::setAttached ( Instance attached_instance,
const Point relative_point 
)

Definition at line 150 of file renderernode.cpp.

References changeInstance(), and m_point.

◆ setAttached() [4/8]

void FIFE::RendererNode::setAttached ( Instance attached_instance)

Definition at line 154 of file renderernode.cpp.

References changeInstance().

◆ setAttached() [5/8]

void FIFE::RendererNode::setAttached ( const Location attached_location,
const Point relative_point 
)

Definition at line 157 of file renderernode.cpp.

References changeInstance(), m_location, and m_point.

◆ setAttached() [6/8]

void FIFE::RendererNode::setAttached ( const Location attached_location)

Definition at line 162 of file renderernode.cpp.

References changeInstance(), and m_location.

◆ setAttached() [7/8]

void FIFE::RendererNode::setAttached ( Layer attached_layer)

Definition at line 166 of file renderernode.cpp.

References m_layer.

◆ setAttached() [8/8]

void FIFE::RendererNode::setAttached ( const Point attached_point)

Definition at line 169 of file renderernode.cpp.

References changeInstance(), m_location, and m_point.

◆ setRelative() [1/3]

void FIFE::RendererNode::setRelative ( const Location relative_location)

Definition at line 175 of file renderernode.cpp.

References FIFE::_log, FL_WARN, m_instance, and m_location.

◆ setRelative() [2/3]

void FIFE::RendererNode::setRelative ( const Location relative_location,
Point  relative_point 
)

Definition at line 181 of file renderernode.cpp.

References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.

◆ setRelative() [3/3]

void FIFE::RendererNode::setRelative ( const Point relative_point)

Definition at line 188 of file renderernode.cpp.

References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.

Member Data Documentation

◆ m_instance

◆ m_layer

Layer* FIFE::RendererNode::m_layer
private

Definition at line 91 of file renderernode.h.

Referenced by getAttachedLayer(), getCalculatedPoint(), getLayer(), operator=(), and setAttached().

◆ m_listener

InstanceDeleteListener* FIFE::RendererNode::m_listener
private

◆ m_location

◆ m_point

Point FIFE::RendererNode::m_point
private

The documentation for this class was generated from the following files: