dtDAL::ActorProxyIcon Class Reference

#include <actorproxyicon.h>

List of all members.

Public Member Functions

 ActorProxyIcon (const IconType &type=IconType::GENERIC)
 Constructs a new actor proxy billboard icon.
 ActorProxyIcon (const IconType &type, const ActorProxyIconConfig &pConfig)
 Constructs a new actor proxy billboard icon using an optional config class meant to be extendable to allow various options.
void SetIconType (const IconType &type)
 Sets the icon type used by this proxy icon.
dtCore::DeltaDrawableGetDrawable ()
 Gets the Delta3D drawable for this proxy icon.
const dtCore::DeltaDrawableGetDrawable () const
 Gets the Delta3D drawable for this proxy icon.
bool OwnsDrawable (dtCore::DeltaDrawable *drawable) const
void SetPosition (const osg::Vec3 &newPos)
void SetRotation (const osg::Matrix &rotMat)
void SetActorRotation (const osg::Vec3 &hpr)
void SetActorRotation (const osg::Matrix &mat)
osg::Matrix GetActorRotation ()
void SetScale (const osg::Vec3 &newScale)

Static Public Member Functions

static void staticInitialize ()
 Initializes the paths to the billboard image files.

Static Public Attributes

static std::string IMAGE_BILLBOARD_GENERIC
static std::string IMAGE_BILLBOARD_CHARACTER
static std::string IMAGE_BILLBOARD_STATICMESH
static std::string IMAGE_BILLBOARD_LIGHT
static std::string IMAGE_BILLBOARD_SOUND
static std::string IMAGE_BILLBOARD_PARTICLESYSTEM
static std::string IMAGE_BILLBOARD_MESHTERRAIN
static std::string IMAGE_BILLBOARD_PLAYERSTART
static std::string IMAGE_BILLBOARD_TRIGGER
static std::string IMAGE_BILLBOARD_CAMERA
static std::string IMAGE_BILLBOARD_WAYPOINT
static std::string IMAGE_ARROW_HEAD
static std::string IMAGE_ARROW_BODY

Protected Member Functions

virtual ~ActorProxyIcon ()
void LoadImages ()
 Helper method assigns a texture and appropriate state to the billboard.

Friends

class Project
class dtEditQt::ViewportManager

Classes

struct  ActorProxyIconConfig
class  BillBoardDrawable
class  IconType
 This enumeration enumerates the different types of billboard icons that are supported by default by the level editor. More...


Constructor & Destructor Documentation

dtDAL::ActorProxyIcon::ActorProxyIcon ( const IconType type = IconType::GENERIC  ) 

Constructs a new actor proxy billboard icon.

This creates the necessary scene geometry and attaches the appropriate image to the icon.

Parameters:
type Type of icon to create. By default, IconType::GENERIC is used.

dtDAL::ActorProxyIcon::ActorProxyIcon ( const IconType type,
const ActorProxyIconConfig pConfig 
)

Constructs a new actor proxy billboard icon using an optional config class meant to be extendable to allow various options.

dtDAL::ActorProxyIcon::~ActorProxyIcon (  )  [protected, virtual]


Member Function Documentation

void dtDAL::ActorProxyIcon::staticInitialize (  )  [static]

Initializes the paths to the billboard image files.

Note:
Called from LibraryManager.

void dtDAL::ActorProxyIcon::SetIconType ( const IconType type  )  [inline]

Sets the icon type used by this proxy icon.

Parameters:
type 

dtCore::DeltaDrawable * dtDAL::ActorProxyIcon::GetDrawable (  ) 

Gets the Delta3D drawable for this proxy icon.

Returns:
A Delta3D transformable which is the parent of the billboard geometry.

const dtCore::DeltaDrawable * dtDAL::ActorProxyIcon::GetDrawable (  )  const

Gets the Delta3D drawable for this proxy icon.

Returns:
A Delta3D transformable which is the parent of the billboard geometry.

bool dtDAL::ActorProxyIcon::OwnsDrawable ( dtCore::DeltaDrawable drawable  )  const

void dtDAL::ActorProxyIcon::SetPosition ( const osg::Vec3 &  newPos  ) 

void dtDAL::ActorProxyIcon::SetRotation ( const osg::Matrix &  rotMat  ) 

void dtDAL::ActorProxyIcon::SetActorRotation ( const osg::Vec3 &  hpr  ) 

void dtDAL::ActorProxyIcon::SetActorRotation ( const osg::Matrix &  mat  ) 

osg::Matrix dtDAL::ActorProxyIcon::GetActorRotation (  ) 

void dtDAL::ActorProxyIcon::SetScale ( const osg::Vec3 &  newScale  ) 

void dtDAL::ActorProxyIcon::LoadImages (  )  [protected]

Helper method assigns a texture and appropriate state to the billboard.

This should only be called be dtDAL::Project (which is a friend).


Friends And Related Function Documentation

friend class Project [friend]

friend class dtEditQt::ViewportManager [friend]


Member Data Documentation

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_GENERIC [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_CHARACTER [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_STATICMESH [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_LIGHT [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_SOUND [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_PARTICLESYSTEM [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_MESHTERRAIN [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_PLAYERSTART [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_TRIGGER [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_CAMERA [static]

std::string dtDAL::ActorProxyIcon::IMAGE_BILLBOARD_WAYPOINT [static]

std::string dtDAL::ActorProxyIcon::IMAGE_ARROW_HEAD [static]

std::string dtDAL::ActorProxyIcon::IMAGE_ARROW_BODY [static]


http://www.delta3d.org
2.0.0 generated 14 Feb 2008