FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
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

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().

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().

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().

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

Definition at line 83 of file renderernode.cpp.

References addInstance().

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.

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

Definition at line 98 of file renderernode.cpp.

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

Definition at line 105 of file renderernode.cpp.

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

Definition at line 112 of file renderernode.cpp.

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

Definition at line 119 of file renderernode.cpp.

References addInstance(), and m_instance.

FIFE::RendererNode::~RendererNode ( )

Definition at line 136 of file renderernode.cpp.

References m_instance, m_listener, and removeInstance().

Member Function Documentation

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:

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:

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:

Instance * FIFE::RendererNode::getAttachedInstance ( )

Definition at line 195 of file renderernode.cpp.

References FIFE::_log, FL_WARN, and m_instance.

Layer * FIFE::RendererNode::getAttachedLayer ( )

Definition at line 207 of file renderernode.cpp.

References FIFE::_log, FL_WARN, and m_layer.

Location FIFE::RendererNode::getAttachedLocation ( )

Definition at line 201 of file renderernode.cpp.

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

Point FIFE::RendererNode::getAttachedPoint ( )

Definition at line 213 of file renderernode.cpp.

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

Instance * FIFE::RendererNode::getInstance ( )

Definition at line 233 of file renderernode.cpp.

References m_instance.

Location FIFE::RendererNode::getLocation ( )

Definition at line 236 of file renderernode.cpp.

References m_location.

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

Definition at line 239 of file renderernode.cpp.

References m_location.

Location FIFE::RendererNode::getOffsetLocation ( )

Definition at line 220 of file renderernode.cpp.

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

Point FIFE::RendererNode::getOffsetPoint ( )

Definition at line 226 of file renderernode.cpp.

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

Point FIFE::RendererNode::getPoint ( )

Definition at line 245 of file renderernode.cpp.

References m_point.

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

Definition at line 248 of file renderernode.cpp.

References m_point.

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.

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:

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:

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

Definition at line 146 of file renderernode.cpp.

References changeInstance(), and m_location.

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

Definition at line 150 of file renderernode.cpp.

References changeInstance(), and m_point.

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

Definition at line 154 of file renderernode.cpp.

References changeInstance().

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.

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

Definition at line 162 of file renderernode.cpp.

References changeInstance(), and m_location.

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

Definition at line 166 of file renderernode.cpp.

References m_layer.

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

Definition at line 169 of file renderernode.cpp.

References changeInstance(), m_location, and m_point.

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.

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.

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

Layer* FIFE::RendererNode::m_layer
private

Definition at line 91 of file renderernode.h.

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

InstanceDeleteListener* FIFE::RendererNode::m_listener
private
Point FIFE::RendererNode::m_point
private

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