FREE::DirectSessionComponentAccessor Class Reference
[Processing engine (API classes)Session]

Class is used to get direct access to the component and repository stored in the session component cache. More...

#include <freSessionComponentCache.h>

List of all members.

Static Public Member Functions

static
SessionComponentCache::GenericComponentType
GetComponent (const SessionComponentCache *pCache)
static void SetComponent (SessionComponentCache::GenericComponentType *pComponent, SessionComponentCache *pCache)
static
SessionComponentCache::CacheRepositoryType
GetRepository (SessionComponentCache *pCache)
static const
SessionComponentCache::CacheRepositoryType
GetRepository (const SessionComponentCache *pCache)
static
SessionComponentCache::GenericComponentType
GetRepositoryElement (const std::string &sElementKey, const SessionComponentCache *pCache)
static void SetRepositoryElement (const std::string &sElementKey, SessionComponentCache::GenericComponentType *pElement, SessionComponentCache *pCache)
static void DeleteRepositoryElement (const std::string &sElementKey, SessionComponentCache *pCache)


Detailed Description

Class is used to get direct access to the component and repository stored in the session component cache.

The public set and get functions for the component of a SessionComponentCache always call the aquivalent functions of the controller stored in the cache to receive the component. This loop through is needed to allow controller to react on the setting or getting of their managed component (e.g. the controller of an image media, that temporarily stores the image on disc instead of keeping it in the cache structure and loads it, when the setter is called. And the repository is normaly only for the use of the controller, so the cache offers no own direct access to the repository.

Remarks:
The direct access has been seperated from the normal SessionComponentCache, because this access should only be used with good reason and is in general reserved to controllers.

Definition at line 206 of file freSessionComponentCache.h.


Member Function Documentation

SessionComponentCache::GenericComponentType * FREE::DirectSessionComponentAccessor::GetComponent ( const SessionComponentCache pCache  )  [static]

Implementation of FREE::DirectSessionComponentAccessor /////////////

Definition at line 274 of file freSessionComponentCache.cxx.

References FREE::SessionComponentCache::m_smpComponent, and throwStaticExceptionMacro.

Referenced by FREE::ComponentControllerBase< TControlledComponent >::ActualizeComponent(), FREE::PointSetMediaControllerBase< PixelType, 2 >::BuildMainComponent(), FREE::ImageMediaControllerBase< TImage >::BuildMainComponent(), FREE::ComponentControllerBase< TControlledComponent >::BuildSubComponents(), FREE::PointSetMediaControllerBase< PixelType, 2 >::GetComponent(), FREE::ImageMediaControllerBase< TImage >::GetComponent(), FREE::ComponentControllerBase< TControlledComponent >::GetComponent(), FREE::ComponentControllerBase< TControlledComponent >::GetMedia(), FREE::ComponentControllerBase< TControlledComponent >::GetSubComponent(), FREE::BSplineDeformableTransformControllerBase< 3, 3 >::ResetMainComponent(), FREE::TransformFieldMediaControllerBase< FREE::ImageTypes< 3 >::VectorType, 3 >::SaveMedia(), FREE::PointSetMediaControllerBase< PixelType, 2 >::SaveMedia(), FREE::IntensityImageMediaControllerBase< float, unsigned short, VDimension >::SaveMedia(), FREE::ComponentControllerBase< TControlledComponent >::SetMedia(), FREE::ComponentControllerBase< TControlledComponent >::SetStatisticEntry(), and FREE::ComponentControllerBase< TControlledComponent >::SetSubComponent().

void FREE::DirectSessionComponentAccessor::SetComponent ( SessionComponentCache::GenericComponentType pComponent,
SessionComponentCache pCache 
) [static]

Definition at line 283 of file freSessionComponentCache.cxx.

References FREE::SessionComponentCache::m_smpComponent, and throwStaticExceptionMacro.

Referenced by FREE::ComponentControllerBase< TControlledComponent >::BuildSetup(), FREE::ImageMediaControllerBase< TImage >::GetComponent(), FREE::TransformFieldMediaControllerBase< FREE::ImageTypes< 3 >::VectorType, 3 >::LoadMedia(), FREE::PointSetMediaControllerBase< PixelType, 2 >::LoadMedia(), FREE::IntensityImageMediaControllerBase< float, unsigned short, VDimension >::LoadMedia(), FREE::ComponentControllerBase< TControlledComponent >::ResetMainComponent(), FREE::BSplineDeformableTransformControllerBase< 3, 3 >::ResetMainComponent(), FREE::ComponentControllerBase< TControlledComponent >::SetComponent(), and FREE::MediaDrainController::SetMediaCasted().

SessionComponentCache::CacheRepositoryType & FREE::DirectSessionComponentAccessor::GetRepository ( SessionComponentCache pCache  )  [static]

Definition at line 292 of file freSessionComponentCache.cxx.

References FREE::SessionComponentCache::m_Repository, and throwStaticExceptionMacro.

const SessionComponentCache::CacheRepositoryType & FREE::DirectSessionComponentAccessor::GetRepository ( const SessionComponentCache pCache  )  [static]

Definition at line 301 of file freSessionComponentCache.cxx.

References FREE::SessionComponentCache::m_Repository, and throwStaticExceptionMacro.

SessionComponentCache::GenericComponentType * FREE::DirectSessionComponentAccessor::GetRepositoryElement ( const std::string &  sElementKey,
const SessionComponentCache pCache 
) [static]

Definition at line 310 of file freSessionComponentCache.cxx.

References FREE::SessionComponentCache::m_Repository, and throwStaticExceptionMacro.

Referenced by FREE::PointSetMediaControllerBase< PixelType, 2 >::GetComponent(), FREE::ImageMediaControllerBase< TImage >::GetComponent(), FREE::RigidRegistrationControllerBase< TControlledRigidProcessor >::GetMediaCasted(), FREE::PointSetRegistrationControllerBase< TControlledRigidProcessor >::GetMediaCasted(), FREE::MediaActualizerController::GetMediaCasted(), FREE::ImageToImageFilterControllerBase< TControlledFilter >::GetMediaCasted(), FREE::ClosedFormRegistrationControllerBase< TControlledRigidProcessor >::GetMediaCasted(), FREE::MediaActualizerController::GetMediaValidityTag(), FREE::ComponentControllerBase< TControlledComponent >::GetMediaValidityTag(), FREE::ComponentControllerBase< TControlledComponent >::GetParameterValidityTag(), FREE::ComponentControllerBase< TControlledComponent >::GetValidityTag(), FREE::ReferencePointsAccessor< iDimension >::ReferencePointsAccessor(), and FREE::TranslationTransformControllerBase< 3 >::SetInitialTransformValues().

void FREE::DirectSessionComponentAccessor::SetRepositoryElement ( const std::string &  sElementKey,
SessionComponentCache::GenericComponentType pElement,
SessionComponentCache pCache 
) [static]

Definition at line 322 of file freSessionComponentCache.cxx.

References FREE::SessionComponentCache::m_Repository, and throwStaticExceptionMacro.

Referenced by FREE::ComponentControllerBase< TControlledComponent >::ActualizeMediaValidityTag(), FREE::ComponentControllerBase< TControlledComponent >::ActualizeParameterValidityTag(), FREE::ComponentControllerBase< TControlledComponent >::ActualizeValidityTag(), FREE::RigidRegistrationControllerBase< TControlledRigidProcessor >::BuildMainComponent(), FREE::PointSetRegistrationControllerBase< TControlledRigidProcessor >::BuildMainComponent(), FREE::MediaControllerBase< TMedia >::BuildMainComponent(), FREE::ImageMediaControllerBase< TImage >::BuildMainComponent(), FREE::ClosedFormRegistrationControllerBase< TControlledRigidProcessor >::BuildMainComponent(), FREE::PointSetMediaControllerBase< PixelType, 2 >::GetComponent(), FREE::ImageMediaControllerBase< TImage >::GetComponent(), FREE::RigidRegistrationControllerBase< TControlledRigidProcessor >::GetMediaCasted(), FREE::PointSetRegistrationControllerBase< TControlledRigidProcessor >::GetMediaCasted(), FREE::MediaActualizerController::GetMediaCasted(), FREE::ImageToImageFilterControllerBase< TControlledFilter >::GetMediaCasted(), FREE::ClosedFormRegistrationControllerBase< TControlledRigidProcessor >::GetMediaCasted(), FREE::PointSetMediaControllerBase< PixelType, 2 >::LoadMedia(), FREE::ReferencePointsAccessor< iDimension >::SetFixedPoints(), FREE::TranslationTransformControllerBase< 3 >::SetMediaCasted(), FREE::MatrixOffsetTransformControllerBase< TMatrixOffsetTransform, VDimension >::SetMediaCasted(), FREE::BSplineDeformableTransformControllerBase< 3, 3 >::SetMediaCasted(), and FREE::ReferencePointsAccessor< iDimension >::SetMovingPoints().

void FREE::DirectSessionComponentAccessor::DeleteRepositoryElement ( const std::string &  sElementKey,
SessionComponentCache pCache 
) [static]

Definition at line 340 of file freSessionComponentCache.cxx.

References FREE::SessionComponentCache::m_Repository.

Referenced by FREE::ReferencePointsAccessor< iDimension >::SetFixedPoints(), and FREE::ReferencePointsAccessor< iDimension >::SetMovingPoints().


The documentation for this class was generated from the following files:
Generated at Sat Oct 13 18:29:28 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000