00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "freScaleTransformController.h"
00024
00025 namespace FREE
00026 {
00030
00031
00032 Scale2DTransformController::
00033 Scale2DTransformController()
00034 {
00035 this->UpdateControllerID(ControllerID::Scale2DTransformController);
00036 this->m_Description = "A rigid scale transform in 3 dimensions.";
00037 };
00038
00039 void
00040 Scale2DTransformController::
00041 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00042 const SessionComponentCache* pComponentCache,
00043 bool bRegardOldSetup) const
00044 {
00045 Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00046
00047
00048 profile.Parameters().AddParameter(cParam_InitialTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor",2,"0");
00049 profile.Parameters().AddParameter(cParam_CurrentTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor",2,"0");
00050 profile.Parameters().AddParameter(cParam_TransformScale,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor",2,"1",-1,true);
00051 };
00052
00056
00057
00058 Scale3DTransformController::
00059 Scale3DTransformController()
00060 {
00061 this->UpdateControllerID(ControllerID::Scale3DTransformController);
00062 this->m_Description = "A rigid scale transform in 3 dimensions.";
00063 };
00064
00065 void
00066 Scale3DTransformController::
00067 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00068 const SessionComponentCache* pComponentCache,
00069 bool bRegardOldSetup) const
00070 {
00071 Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00072
00073
00074 profile.Parameters().AddParameter(cParam_InitialTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor\n3: z scale factor",3,"0");
00075 profile.Parameters().AddParameter(cParam_CurrentTransformValues,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor\n3: z scale factor",3,"0");
00076 profile.Parameters().AddParameter(cParam_TransformScale,CtrlProfile::Parameter::PVTDouble,"1: x scale factor\n2: y scale factor\n3: z scale factor",3,"1",-1,true);
00077 };
00078
00079 }