#include <freMediaActualizerController.h>


MediaActualizerController is derived from ProcessorControllerBase and is the controller of fre::MediaActualizer.
Definition at line 41 of file freMediaActualizerController.h.
The component class managed by the controller. The component class must be a derivation from itk::LightObject to ensure the ability to use the smartpointer concept of itk
Reimplemented from FREE::ProcessorControllerBase< TControlledProcessor >.
Definition at line 44 of file freMediaActualizerController.h.
Reimplemented from FREE::ProcessorControllerBase< TControlledProcessor >.
Definition at line 45 of file freMediaActualizerController.h.
Definition at line 46 of file freMediaActualizerController.h.
SmartPointer of the component class
Reimplemented from FREE::ComponentControllerBase< TControlledProcessor >.
Definition at line 48 of file freMediaActualizerController.h.
Generic component type
Reimplemented from FREE::ProcessorControllerBase< TControlledProcessor >.
Definition at line 49 of file freMediaActualizerController.h.
| typedef Superclass::GenericComponentPointer FREE::MediaActualizerController::GenericComponentPointer |
Generic smartpointer for the controller interface
Reimplemented from FREE::ProcessorControllerBase< TControlledProcessor >.
Definition at line 50 of file freMediaActualizerController.h.
Reimplemented from FREE::ProcessorControllerBase< TControlledProcessor >.
Definition at line 51 of file freMediaActualizerController.h.
| FREE::MediaActualizerController::MediaActualizerController | ( | ) |
Definition at line 159 of file freMediaActualizerController.cxx.
References FREE::ComponentControllerInterface::m_Description, and FREE::ComponentControllerInterface::UpdateControllerID().

| FREE::MediaActualizerController::itkTypeMacro | ( | MediaActualizerController | , | |
| ProcessorControllerBase | ||||
| ) |
| FREE::MediaActualizerController::DeclareParameterMacro | ( | PersistentResult | ) |
| FREE::MediaActualizerController::DeclareParameterMacro | ( | UseField | ) |
| FREE::MediaActualizerController::DeclareMediaIDMacro | ( | deformationField | ) |
| FREE::MediaActualizerController::DeclareMediaIDMacro | ( | transformFunction | ) |
| ValidityTag::Pointer FREE::MediaActualizerController::GetMediaValidityTag | ( | const MediaID & | mediaID, | |
| SessionComponentCache * | pComponentCache | |||
| ) | const [virtual] |
Retrieves the validity tag of the media specified by the mediaID. The tag is used to decide if a media component is outdated or up to date. It determines the time when the medium was actualized the last time. This can be used by other controllers that link to the media to decide if they may be outdated.
Reimplement GetMediaValidityTag() to realize special controller behavior.
This version checks the cache repository for an element with key "MediaValidityTag_[mediaID]" and returns the ValidityTag. (e.g.: mediaID = finalImage -> key = MediaValidityTag_finalImage). If no element exists with this key, but the media is defined in the controller profile, a NULL-ValidityTag will be returned (always outdated compared to others). If neither an element nor a profile entry can be found, an exception will be thrown.
| [in] | mediaID | ID specifying the wanted media. |
| [in] | pComponentCache | Pointer to the component cache. |
Reimplemented from FREE::ComponentControllerBase< TControlledProcessor >.
Definition at line 37 of file freMediaActualizerController.cxx.
References catchAllNPassMacro, FREE::KeyedCollectionBase< TKey, TElement, TIdentifierClass >::GetElement(), FREE::ComponentControllerBase< TControlledProcessor >::GetMediaValidityTag(), FREE::DirectSessionComponentAccessor::GetRepositoryElement(), FREE::SessionAccessor::GetValidityTag(), FREE::ComponentSetup::MediaLinks(), FREE::SessionComponentRepositoryKeys::MediaValidity(), FREE::ValidityTag::NewNull(), FREE::SessionComponentCache::Setup(), and throwCtrlExceptionMacro.
Referenced by GetMediaCasted().

| ValidityTag::Pointer FREE::MediaActualizerController::GetMediaValidityTagRequirement | ( | const MediaID & | mediaID, | |
| SessionComponentCache * | pComponentCache | |||
| ) | const [virtual] |
Retrieves the validity tag requirement of the media specified by the mediaID. The requirement is the most up to date ValidityTag in the dependency chain of a media component.
Reimplement GetMediaValidityTagRequirement() to realize special controller behavior accordingly a certain dependency chain.
This version returns only the ValidityTag of the specified media; thus the media has no dependencies.
| [in] | mediaID | ID specifying the wanted media. |
| [in] | pComponentCache | Pointer to the component cache. |
Reimplemented from FREE::ComponentControllerBase< TControlledProcessor >.
Definition at line 86 of file freMediaActualizerController.cxx.
References catchAllNPassMacro, FREE::KeyedCollectionBase< TKey, TElement, TIdentifierClass >::GetElement(), FREE::ComponentControllerBase< TControlledProcessor >::GetMediaValidityTagRequirement(), FREE::SessionAccessor::GetValidityTagRequirement(), FREE::ComponentSetup::MediaLinks(), FREE::ValidityTag::New(), FREE::SessionComponentCache::Setup(), throwCtrlExceptionMacro, and UseField().
Referenced by GetMediaCasted().

| std::string FREE::MediaActualizerController::GetMediaControllerID | ( | const MediaID & | mediaID, | |
| SessionComponentCache * | pComponentCache | |||
| ) | const [virtual] |
Retrieves the ID of the actual controller of the given media. Every controller has default types/controllers for its media, but they could be invalid by linking media (e.g. media type is intensity image media, but the actually linked medium could be of subtype region image media.).
| [in] | mediaID | ID specifying the wanted media. |
| [in] | pComponentCache | Pointer to the component cache. |
Reimplemented from FREE::ComponentControllerBase< TControlledProcessor >.
Definition at line 141 of file freMediaActualizerController.cxx.
References catchAllNPassMacro, FREE::csUndefinedController, FREE::KeyedCollectionBase< TKey, TElement, TIdentifierClass >::GetElement(), FREE::SessionAccessor::GetMediaControllerID(), FREE::ComponentSetup::MediaLinks(), FREE::SessionComponentCache::Setup(), and throwCtrlExceptionMacro.

| void FREE::MediaActualizerController::GenerateProfile | ( | CtrlProfile::ControllerProfile & | profile, | |
| const SessionComponentCache * | pComponentCache, | |||
| bool | bRegardOldSetup | |||
| ) | const [protected, virtual] |
Adjusts the current profile according to the definitions of the controller.
Method should call the superclass variant to regard demands of basic controllers.
| [in,out] | profile | Reference of the current profile. |
| [in] | pComponentCache | Pointer to the cache indicating the location of the component that should be profiled. This pointer can be null. In this case only a default profile that isn't context sensitive is wanted (others aren't possible anyway) |
| [in] | bRegardOldSetup | If true, the setup of pComponentCache is valid and should be regarded when the profile is generated. Otherwise just use defaults if setup information is needed. |
Reimplemented from FREE::ComponentControllerBase< TControlledProcessor >.
Definition at line 168 of file freMediaActualizerController.cxx.
References FREE::DAAny, FREE::DASet, FREE::CtrlProfile::Media::DT_AllDimensions, FREE::ComponentControllerBase< TControlledProcessor >::GenerateProfile(), FREE::ControllerID::MediaControllerBase, FREE::CtrlProfile::ControllerProfileBase::MediaMap(), FREE::CtrlProfile::ControllerProfileBase::Parameters(), and FREE::Parameter::PVTBool.

| MediaActualizerController::GenericMediaPointer FREE::MediaActualizerController::GetMediaCasted | ( | const MediaID & | mediaID, | |
| ComponentType * | pComponent, | |||
| SessionComponentCache * | pComponentCache, | |||
| SessionInfo * | pSessionInfo | |||
| ) | const [protected, virtual] |
Definition at line 189 of file freMediaActualizerController.cxx.
References FREE::MediaActualizer::ActualizeMediaByField(), FREE::MediaActualizer::ActualizeMediaByFunction(), FREE::ComponentControllerBase< TControlledProcessor >::ActualizeMediaValidityTag(), catchAllNPassMacro, FREE::KeyedCollectionBase< TKey, TElement, TIdentifierClass >::GetElement(), FREE::ComponentControllerBase< TControlledProcessor >::GetMediaCasted(), GetMediaValidityTag(), GetMediaValidityTagRequirement(), FREE::SessionAccessor::GetParameterValue(), FREE::DirectSessionComponentAccessor::GetRepositoryElement(), FREE::ComponentSetup::MediaLinks(), FREE::ComponentControllerBase< TControlledProcessor >::NotifyProgress(), FREE::DirectSessionComponentAccessor::SetRepositoryElement(), FREE::SessionComponentCache::Setup(), throwCtrlExceptionMacro, and UseField().

| void FREE::MediaActualizerController::SetMediaCasted | ( | const MediaID & | mediaID, | |
| GenericMediaType * | pMedia, | |||
| ComponentType * | pComponent, | |||
| SessionComponentCache * | pComponentCache, | |||
| SessionInfo * | pSessionInfo | |||
| ) | const [protected, virtual] |
Definition at line 252 of file freMediaActualizerController.cxx.
References FREE::ComponentControllerBase< TControlledProcessor >::SetMediaCasted().

| bool FREE::MediaActualizerController::UseField | ( | SessionComponentCache * | pComponentCache | ) | const [protected] |
Definition at line 131 of file freMediaActualizerController.cxx.
References FREE::SessionAccessor::GetParameterValue().
Referenced by GetMediaCasted(), and GetMediaValidityTagRequirement().

1.5.3 written by Dimitri van Heesch,
© 1997-2000