#include <freComponentSetupAdaptor.h>

Public Types | |
| typedef ComponentSetup::Pointer | ComponentSetupPointer |
Public Member Functions | |
| virtual const char * | GetNameOfClass () const |
| ComponentSetup * | operator() () const |
| ComponentSetup * | operator() (ComponentSetup *pComponent) |
| virtual ComponentSetup * | Adapt (ComponentSetup *pComponent) |
| ComponentSetupPointer | CreateAndAdapt (const ComponentID &compID=cComp_NotDefined) |
| ComponentSetup * | GetActualComponent () const |
| void | SetActualComponent (ComponentSetup *pComponent) |
Protected Member Functions | |
| ComponentAdaptorBase (ComponentSetup *pComponent=NULL) | |
| virtual | ~ComponentAdaptorBase () |
Protected Attributes | |
| ComponentSetupPointer | m_pComponent |
ComponentAdaptorBase is the base class of setup component adaptors. Component adaptors are used to initialize a ComponentSetup with the basic parameters of a special controller type (e.g. TransformController). And also the adapter offers member functions to access these parameters in a more specialized way, than the generic GetParameterValue() and SetParameterValue() functions. Also direct access to subcomponents could be offered.
Definition at line 43 of file freComponentSetupAdaptor.h.
Definition at line 46 of file freComponentSetupAdaptor.h.
| FREE::ComponentAdaptorBase::ComponentAdaptorBase | ( | ComponentSetup * | pComponent = NULL |
) | [protected] |
Default Constructor. Sets the actual setup component by SetActualComponent().
Con
Implementation of FREE::ComponentAdaptorBase ///////////////////////
Definition at line 35 of file freComponentSetupAdaptor.cxx.
References SetActualComponent().

| FREE::ComponentAdaptorBase::~ComponentAdaptorBase | ( | ) | [protected, virtual] |
Definition at line 41 of file freComponentSetupAdaptor.cxx.
| virtual const char* FREE::ComponentAdaptorBase::GetNameOfClass | ( | ) | const [inline, virtual] |
Definition at line 46 of file freComponentSetupAdaptor.h.
| ComponentSetup * FREE::ComponentAdaptorBase::operator() | ( | ) | const |
This operator is equal to the member function GetActualComponent().
Definition at line 47 of file freComponentSetupAdaptor.cxx.
References GetActualComponent().

| ComponentSetup * FREE::ComponentAdaptorBase::operator() | ( | ComponentSetup * | pComponent | ) |
This operator is equal to the member function Adapt().
Definition at line 54 of file freComponentSetupAdaptor.cxx.
References Adapt().

| ComponentSetup * FREE::ComponentAdaptorBase::Adapt | ( | ComponentSetup * | pComponent | ) | [virtual] |
The function takes the passed ComponentSetup resets it and adds the basic parameters. After the adaptation the component becomes the current component of the adaptor and is the return of the function.
| [in,out] | pComponent | Pointer to the component that should be adapted. |
Reimplemented in FREE::TransformSetupAdaptor.
Definition at line 61 of file freComponentSetupAdaptor.cxx.
References FREE::ComponentSetup::ResetParameters(), and SetActualComponent().
Referenced by FREE::TransformSetupAdaptor::Adapt(), CreateAndAdapt(), and operator()().

| ComponentAdaptorBase::ComponentSetupPointer FREE::ComponentAdaptorBase::CreateAndAdapt | ( | const ComponentID & | compID = cComp_NotDefined |
) |
The function creates a new ComponentSetup with the passed values and adapts it with Adapt().
| [in] | compID | Component ID of the new component. |
Definition at line 70 of file freComponentSetupAdaptor.cxx.
References Adapt(), and FREE::ComponentSetup::New().

| ComponentSetup * FREE::ComponentAdaptorBase::GetActualComponent | ( | ) | const |
Returns the pointer to the current setup component.
Definition at line 79 of file freComponentSetupAdaptor.cxx.
References m_pComponent.
Referenced by operator()().
| void FREE::ComponentAdaptorBase::SetActualComponent | ( | ComponentSetup * | pComponent | ) |
Sets the pointer to the actual setup component.
Definition at line 86 of file freComponentSetupAdaptor.cxx.
References m_pComponent.
Referenced by Adapt(), and ComponentAdaptorBase().
Pointer to the actual setup component.
Definition at line 85 of file freComponentSetupAdaptor.h.
Referenced by FREE::TransformSetupAdaptor::Adapt(), GetActualComponent(), FREE::TransformSetupAdaptor::GetCurrentTransformParameters(), FREE::TransformSetupAdaptor::GetInitialTransformParameters(), FREE::TransformSetupAdaptor::GetScales(), SetActualComponent(), FREE::TransformSetupAdaptor::SetCurrentTransformParameters(), FREE::TransformSetupAdaptor::SetInitialTransformParameters(), and FREE::TransformSetupAdaptor::SetScales().
1.5.3 written by Dimitri van Heesch,
© 1997-2000