#include <freParameterListMediaController.h>


Definition at line 37 of file freParameterListMediaController.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::StoreableMediaControllerBase< TMedia >.
Definition at line 40 of file freParameterListMediaController.h.
Reimplemented from FREE::StoreableMediaControllerBase< TMedia >.
Definition at line 41 of file freParameterListMediaController.h.
SmartPointer of the component class
Reimplemented from FREE::StoreableMediaControllerBase< TMedia >.
Definition at line 42 of file freParameterListMediaController.h.
Reimplemented from FREE::StoreableMediaControllerBase< TMedia >.
Definition at line 43 of file freParameterListMediaController.h.
| typedef Superclass::GenericComponentPointer FREE::ParameterListMediaController::GenericComponentPointer |
Reimplemented from FREE::StoreableMediaControllerBase< TMedia >.
Definition at line 44 of file freParameterListMediaController.h.
Reimplemented from FREE::StoreableMediaControllerBase< TMedia >.
Definition at line 45 of file freParameterListMediaController.h.
| FREE::ParameterListMediaController::ParameterListMediaController | ( | ) |
Definition at line 36 of file freParameterListMediaController.cxx.
References FREE::ComponentControllerInterface::m_Description, and FREE::ComponentControllerInterface::UpdateControllerID().

| FREE::ParameterListMediaController::~ParameterListMediaController | ( | ) | [virtual] |
Definition at line 44 of file freParameterListMediaController.cxx.
| FREE::ParameterListMediaController::itkTypeMacro | ( | ParameterListMediaController | , | |
| StoreableMediaControllerBase | ||||
| ) |
| FREE::ParameterListMediaController::DeclareParameterMacro | ( | ReadMode | ) |
| FREE::ParameterListMediaController::DeclareParameterMacro | ( | ParameterLink | ) |
| ParameterListMediaController::GenericMediaPointer FREE::ParameterListMediaController::ComputeActualizedMedia | ( | GenericMediaType * | pGenericMedia, | |
| GenericMediaType * | pGenericTransformationField | |||
| ) | const [virtual] |
Definition at line 50 of file freParameterListMediaController.cxx.
| ParameterListMediaController::GenericMediaPointer FREE::ParameterListMediaController::ComputeActualizedMediaByFunction | ( | GenericMediaType * | pGenericMedia, | |
| GenericMediaType * | pGenericTransformationFunction | |||
| ) | const [virtual] |
Definition at line 59 of file freParameterListMediaController.cxx.
| bool FREE::ParameterListMediaController::SaveMedia | ( | std::string | sMediaPath, | |
| GenericMediaType * | pMedia | |||
| ) | const [virtual] |
This function saves the media passed. The location is specified by the passed path.
| [in] | sMediaPath | Path locating the destination of the save operation. |
| [in] | pMedia | Pointer to media. |
Implements FREE::StoreableMediaControllerInterface.
Definition at line 68 of file freParameterListMediaController.cxx.
| bool FREE::ParameterListMediaController::SaveMedia | ( | SessionComponentCache * | pCache | ) | const [virtual] |
This function saves the media passed within the cache as component. The saving behavior depends on the controller (e.g. point set controller will save the media as parameter in the component setup of the cache; image media controller will save the media to the path specified in the component setup).
| [in] | pCache | Cache containg the media to be saved as component. Most controller also need a component setup referenced by the cache. |
Reimplemented from FREE::StoreableMediaControllerBase< TMedia >.
Definition at line 77 of file freParameterListMediaController.cxx.
References FREE::SessionComponentCache::Component(), FREE::SessionComponentCache::ComponentIsAssigned(), FREE::ParameterCollection::GetParameter(), FREE::Parameter::GetParameterName(), FREE::Parameter::GetParameterValue(), FREE::ParameterCollection::GetParameterValue(), FREE::ComponentSetup::Parameters(), FREE::SessionComponentCache::Setup(), FREE::SessionComponentCache::SetupIsAssigned(), FREE::ParameterCollection::Size(), and throwCtrlExceptionMacro.

| bool FREE::ParameterListMediaController::LoadMedia | ( | SessionComponentCache * | pCache | ) | const [virtual] |
This function loads the media and stored it as component in the cache. The loading behavior depends on the controller (e.g. image media controller will save the media to the path specified in the component setup).
| [in,out] | pCache | Cache containg the component setup most controller need to load the media. The media will be stored as component in the passed cache. |
Reimplemented from FREE::MediaControllerBase< TMedia >.
Definition at line 111 of file freParameterListMediaController.cxx.
References FREE::SessionComponentCache::Component(), FREE::SessionComponentCache::ComponentIsAssigned(), FREE::ParameterCollection::GetParameter(), FREE::Parameter::GetParameterName(), FREE::Parameter::GetParameterValue(), FREE::ParameterCollection::GetParameterValue(), FREE::ComponentControllerBase< TMedia >::NotifyProgress(), FREE::ComponentSetup::Parameters(), FREE::SessionComponentCache::Setup(), FREE::SessionComponentCache::SetupIsAssigned(), FREE::ParameterCollection::Size(), and throwCtrlExceptionMacro.
Referenced by BuildMainComponent().

| unsigned long FREE::ParameterListMediaController::GetMediaDimension | ( | ) | const [virtual] |
This function returns the dimension of the media controlled by the controller.
Reimplemented from FREE::MediaControllerBase< TMedia >.
Definition at line 147 of file freParameterListMediaController.cxx.
| ValidityTag::Pointer FREE::ParameterListMediaController::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< TMedia >.
Definition at line 187 of file freParameterListMediaController.cxx.
References FREE::ComponentControllerBase< TMedia >::GetMediaValidityTagRequirement(), and FREE::ValidityTag::New().

| void FREE::ParameterListMediaController::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::StoreableMediaControllerBase< TMedia >.
Definition at line 154 of file freParameterListMediaController.cxx.
References FREE::StoreableMediaControllerBase< TMedia >::GenerateProfile(), FREE::CtrlProfile::ControllerProfileBase::Parameters(), FREE::Parameter::PVTBool, and FREE::Parameter::PVTIDPath.

| ParameterListMediaController::ComponentPointer FREE::ParameterListMediaController::BuildMainComponent | ( | ComponentSetup * | pComponentSetup, | |
| SessionComponentCache * | pComponentCache | |||
| ) | const [protected, virtual] |
This function (called by BuildSetup()) creates an object of the controlled class by the use of the passed setup information and initializes other elements in the cache if required.
In a derived class this function should be overridden if a simple instantiation is not sufficient.
| [in] | pComponentSetup | The setup information for the component that should be build. |
| [in,out] | pComponentCache | Pointer to the component cache associated with the component. The component will be automatically added to the cache by the BuildSetup() |
Reimplemented from FREE::MediaControllerBase< TMedia >.
Definition at line 169 of file freParameterListMediaController.cxx.
References FREE::MediaControllerBase< TMedia >::BuildMainComponent(), FREE::ParameterCollection::GetParameterValue(), LoadMedia(), FREE::ComponentSetup::Parameters(), FREE::SessionComponentCache::Setup(), and throwCtrlExceptionMacro.

1.5.3 written by Dimitri van Heesch,
© 1997-2000