This class allows customization of the character manipulator behavior. More...
#include
<kaydaradef.h>
#include <fbsdk/fbcomponent.h>
#include <fbsdk/fbcore.h>
#include <fbsdk/fbcharacter.h>
Go to the source code of this file.
This class allows customization of the character manipulator behavior.
Definition in file fbcharactermanipulator.h.
#define FBSDK_DLL K_DLLIMPORT |
Be sure that FBSDK_DLL is defined only once...
Definition at line 48 of file fbcharactermanipulator.h.
#define FBCharacterManipulatorCtrlSetDeclare | ( | ClassName, | |
Parent | |||
) |
FBClassDeclare( ClassName, Parent ); \ public: \ ClassName(char * pName):Parent(pName) { FBClassInit; } \ private:
Manipulator class declaration.
ClassName | Manipulator class name. |
Parent | Parent class name. |
Definition at line 298 of file fbcharactermanipulator.h.
#define FBCharacterManipulatorCtrlSetImplementation | ( | ThisComponent | ) | FBClassImplementation( ThisComponent ) |
Manipulator class implementation.
ThisComponent | The name of the class to implement. |
Definition at line 307 of file fbcharactermanipulator.h.
Manipulation Start Result.
Definition at line 63 of file fbcharactermanipulator.h.
Manipulation Get Result.
Definition at line 71 of file fbcharactermanipulator.h.
Manipulation Set Result.
kFBManipulationSetContinue |
Return this value when you don't want handle the request, another manipulator will try to handle it. |
kFBManipulationSetFail |
Return this value when you have set the value. |
Definition at line 79 of file fbcharactermanipulator.h.
enum FBReferencialType |
Specify the referential when a manipulation function is called.
Definition at line 86 of file fbcharactermanipulator.h.
enum FBSetType |
Specify what to do with the provided value.
FBSetTypeNone |
Do nothing with the value. |
FBSetTypeExact |
Set the value directly. |
FBSetTypeCumulative |
Add the provided value to the original value. |
Definition at line 97 of file fbcharactermanipulator.h.
enum FBSetWhat |
Specify what part of the provided value should be used.
Definition at line 105 of file fbcharactermanipulator.h.
enum FBManipPivot |
Specify how the pivot should be interpreted.
Definition at line 116 of file fbcharactermanipulator.h.
enum FBManipMode |
Manipulator Mode.
Definition at line 125 of file fbcharactermanipulator.h.
FB_DEFINE_COMPONENT | ( | FBSDK_DLL | , |
CharacterManipulator | |||
) |
FB_DEFINE_COMPONENT | ( | FBSDK_DLL | , |
CharacterManipulatorCtrlSet | |||
) |
__FB_FORWARD | ( | FBCharacterManipulator | ) |
Used to translate, rotate or scale a character.
These classes are under development and may change dramatically between versions. This class exposes part of the functionality associated with Character manipulation. This class is a pure virtual class, it defined the basic functions that a manipulator must implement to be useful. Here is an example of how a manipulator works (translation manipulator in this case): 1- After a model has been selected in the viewer, the manipulator is displayed. The function TranslationGet() is called to determnine the location of the manipulator. 2- The user select the manipualtor and start a manipulation. The function TranslationIsEditable() is called. Based on the returned value, the manipulation will continue or will be stopped (the manipulator will not moved). 3- If the manipulation continues, the function TranslationStartManipulation() will be called. This function is useful to setup internal state before the actual manipulation starts. Based on the returned value of TranslationStartManipulation(), the manipulation will continue or will be stopped. 4- If the manipulation continue, a TranslationSet() will be called. This function will contains a new value and information about the manipulation. Use this information to set the new TRS values of the manipulated model. 5- TranslationGet() and TranslationSet() will be called one after the other until the manipulation is done, to reposition the manipulator and to update the model location. 6- When the manipulation is finished, TranslationStopManipulation() is called.
__FB_FORWARD | ( | FBCharacterManipulatorCtrlSet | ) |