Project

General

Profile

SO3Engine
SO3::SWidgetFactory Class Referenceabstract

#include <SO3WidgetFactory.h>

Inheritance diagram for SO3::SWidgetFactory:
SO3::SBitmapWidgetFactory SO3::SFlashWidgetFactory SO3::SObjWindowWidgetFactory SO3::SWebNavigatorWidgetFactory

Public Member Functions

 SWidgetFactory (const std::string &widgetType)
 
virtual ~SWidgetFactory ()
 
std::string GetType ()
 
SWidgetCreateWidget (SScene *targetScene, const std::string &widgetName, const int &xPos, const int &yPos, const unsigned short &width, const unsigned short &height, SViewPort *targetViewport, const unsigned int &widgetZOrder)
 
SWidgetCreateWidget (SScene *targetScene, const std::string &widgetName, const int &xPos, const int &yPos, const unsigned short &width, const unsigned short &height, SViewPort *targetViewport)
 
SWidgetCreateWidget (SScene *targetScene, const std::string &widgetName, const unsigned short &width, const unsigned short &height, SMaterial *targetMaterial, const unsigned short &targetTechnique, const unsigned short &targetPass, const unsigned short &targetTextureUnit)
 
void DeleteWidget (SWidget *existingWidget)
 

Protected Member Functions

virtual SWidgetCreateWidgetImpl (SScene *targetScene, const std::string &widgetName, const int &xPos, const int &yPos, const unsigned short &width, const unsigned short &height, SViewPort *targetViewport, const unsigned int &widgetZOrder)=0
 
virtual SWidgetCreateWidgetImpl (SScene *targetScene, const std::string &widgetName, const int &xPos, const int &yPos, const unsigned short &width, const unsigned short &height, SViewPort *targetViewport)=0
 
virtual SWidgetCreateWidgetImpl (SScene *targetScene, const std::string &widgetName, const unsigned short &width, const unsigned short &height, SMaterial *targetMaterial, const unsigned short &targetTechnique, const unsigned short &targetPass, const unsigned short &targetTextureUnit)=0
 
virtual void DeleteWidgetImpl (SWidget *existingWidget)=0
 

Detailed Description

Definition at line 43 of file SO3WidgetFactory.h.

Constructor & Destructor Documentation

◆ SWidgetFactory()

SO3::SWidgetFactory::SWidgetFactory ( const std::string &  widgetType)

Constructor.

Definition at line 42 of file SO3WidgetFactory.cpp.

◆ ~SWidgetFactory()

SO3::SWidgetFactory::~SWidgetFactory ( )
virtual

Destructor.

Definition at line 52 of file SO3WidgetFactory.cpp.

Member Function Documentation

◆ CreateWidget() [1/3]

SWidget * SO3::SWidgetFactory::CreateWidget ( SScene targetScene,
const std::string &  widgetName,
const int &  xPos,
const int &  yPos,
const unsigned short &  width,
const unsigned short &  height,
SViewPort targetViewport 
)

Create a widget on a viewport, creating a new material.

Definition at line 70 of file SO3WidgetFactory.cpp.

◆ CreateWidget() [2/3]

SWidget * SO3::SWidgetFactory::CreateWidget ( SScene targetScene,
const std::string &  widgetName,
const int &  xPos,
const int &  yPos,
const unsigned short &  width,
const unsigned short &  height,
SViewPort targetViewport,
const unsigned int &  widgetZOrder 
)

Create a widget on a viewport, creating a new material.

Definition at line 65 of file SO3WidgetFactory.cpp.

◆ CreateWidget() [3/3]

SWidget * SO3::SWidgetFactory::CreateWidget ( SScene targetScene,
const std::string &  widgetName,
const unsigned short &  width,
const unsigned short &  height,
SMaterial targetMaterial,
const unsigned short &  targetTechnique,
const unsigned short &  targetPass,
const unsigned short &  targetTextureUnit 
)

Create a widget on an existing material.

Definition at line 75 of file SO3WidgetFactory.cpp.

◆ CreateWidgetImpl() [1/3]

virtual SWidget * SO3::SWidgetFactory::CreateWidgetImpl ( SScene targetScene,
const std::string &  widgetName,
const int &  xPos,
const int &  yPos,
const unsigned short &  width,
const unsigned short &  height,
SViewPort targetViewport 
)
protectedpure virtual

Create a widget on a 2D rect, creating a new material. Concrete implementation to be redefine by subclasses.

Implemented in SO3::SBitmapWidgetFactory, SO3::SFlashWidgetFactory, SO3::SObjWindowWidgetFactory, and SO3::SWebNavigatorWidgetFactory.

◆ CreateWidgetImpl() [2/3]

virtual SWidget * SO3::SWidgetFactory::CreateWidgetImpl ( SScene targetScene,
const std::string &  widgetName,
const int &  xPos,
const int &  yPos,
const unsigned short &  width,
const unsigned short &  height,
SViewPort targetViewport,
const unsigned int &  widgetZOrder 
)
protectedpure virtual

Create a widget on a viewport, creating a new material. Concrete implementation to be redefine by subclasses.

Implemented in SO3::SBitmapWidgetFactory, SO3::SFlashWidgetFactory, SO3::SObjWindowWidgetFactory, and SO3::SWebNavigatorWidgetFactory.

◆ CreateWidgetImpl() [3/3]

virtual SWidget * SO3::SWidgetFactory::CreateWidgetImpl ( SScene targetScene,
const std::string &  widgetName,
const unsigned short &  width,
const unsigned short &  height,
SMaterial targetMaterial,
const unsigned short &  targetTechnique,
const unsigned short &  targetPass,
const unsigned short &  targetTextureUnit 
)
protectedpure virtual

Create a widget on an existing material. Concrete implementation to be redefine by subclasses.

Implemented in SO3::SBitmapWidgetFactory, SO3::SFlashWidgetFactory, SO3::SObjWindowWidgetFactory, and SO3::SWebNavigatorWidgetFactory.

◆ DeleteWidget()

void SO3::SWidgetFactory::DeleteWidget ( SWidget existingWidget)

Definition at line 80 of file SO3WidgetFactory.cpp.

◆ DeleteWidgetImpl()

virtual void SO3::SWidgetFactory::DeleteWidgetImpl ( SWidget existingWidget)
protectedpure virtual

◆ GetType()

std::string SO3::SWidgetFactory::GetType ( )

Definition at line 60 of file SO3WidgetFactory.cpp.


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