Public Member Functions | Protected Types | Protected Attributes | List of all members
gte::PVWUpdater Class Reference

#include <GtePVWUpdater.h>

Public Member Functions

std::shared_ptr< Camera > const & GetCamera () const
 
BufferUpdater const & GetUpdater () const
 
 PVWUpdater ()
 
 PVWUpdater (std::shared_ptr< Camera > const &camera, BufferUpdater const &updater)
 
void Set (std::shared_ptr< Camera > const &camera, BufferUpdater const &updater)
 
void SetUpdater (BufferUpdater const &updater)
 
bool Subscribe (Matrix4x4< float > const &worldMatrix, std::shared_ptr< ConstantBuffer > const &cbuffer, std::string const &pvwMatrixName="pvwMatrix")
 
bool Unsubscribe (Matrix4x4< float > const &worldMatrix)
 
void UnsubscribeAll ()
 
void Update ()
 
virtual ~PVWUpdater ()
 

Protected Types

typedef Matrix4x4< float > const * PVWKey
 
typedef std::pair< std::shared_ptr< ConstantBuffer >, std::stringPVWValue
 

Protected Attributes

std::shared_ptr< CameramCamera
 
std::map< PVWKey, PVWValuemSubscribers
 
BufferUpdater mUpdater
 

Detailed Description

Definition at line 17 of file GtePVWUpdater.h.

Member Typedef Documentation

typedef Matrix4x4<float> const* gte::PVWUpdater::PVWKey
protected

Definition at line 60 of file GtePVWUpdater.h.

typedef std::pair<std::shared_ptr<ConstantBuffer>, std::string> gte::PVWUpdater::PVWValue
protected

Definition at line 61 of file GtePVWUpdater.h.

Constructor & Destructor Documentation

PVWUpdater::~PVWUpdater ( )
virtual

Definition at line 12 of file GtePVWUpdater.cpp.

PVWUpdater::PVWUpdater ( )

Definition at line 16 of file GtePVWUpdater.cpp.

PVWUpdater::PVWUpdater ( std::shared_ptr< Camera > const &  camera,
BufferUpdater const &  updater 
)

Definition at line 21 of file GtePVWUpdater.cpp.

Member Function Documentation

std::shared_ptr< Camera > const & gte::PVWUpdater::GetCamera ( ) const
inline

Definition at line 66 of file GtePVWUpdater.h.

BufferUpdater const & gte::PVWUpdater::GetUpdater ( ) const
inline

Definition at line 76 of file GtePVWUpdater.h.

void PVWUpdater::Set ( std::shared_ptr< Camera > const &  camera,
BufferUpdater const &  updater 
)

Definition at line 26 of file GtePVWUpdater.cpp.

void gte::PVWUpdater::SetUpdater ( BufferUpdater const &  updater)
inline

Definition at line 71 of file GtePVWUpdater.h.

bool PVWUpdater::Subscribe ( Matrix4x4< float > const &  worldMatrix,
std::shared_ptr< ConstantBuffer > const &  cbuffer,
std::string const &  pvwMatrixName = "pvwMatrix" 
)

Definition at line 32 of file GtePVWUpdater.cpp.

bool PVWUpdater::Unsubscribe ( Matrix4x4< float > const &  worldMatrix)

Definition at line 48 of file GtePVWUpdater.cpp.

void PVWUpdater::UnsubscribeAll ( )

Definition at line 53 of file GtePVWUpdater.cpp.

void PVWUpdater::Update ( )

Definition at line 58 of file GtePVWUpdater.cpp.

Member Data Documentation

std::shared_ptr<Camera> gte::PVWUpdater::mCamera
protected

Definition at line 57 of file GtePVWUpdater.h.

std::map<PVWKey, PVWValue> gte::PVWUpdater::mSubscribers
protected

Definition at line 62 of file GtePVWUpdater.h.

BufferUpdater gte::PVWUpdater::mUpdater
protected

Definition at line 58 of file GtePVWUpdater.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06