fbsdk/fbmodel.h File Reference

fbmodel.h File Reference
+ この参照ページは、次の概要トピックと関連付けられています。
#include <kaydaradef.h>
#include <fbsdk/fbcore.h>
#include <fbsdk/fbcomponent.h>
#include <fbsdk/fbshader.h>
#include <fbsdk/fbtexture.h>
#include <fbsdk/fbgeometry.h>
#include <fbsdk/fbmaterial.h>
#include <fbsdk/fbmath.h>

File Description

Base class for Cameras.

Base class for models.

Base class for Lights.

Definition in file fbmodel.h.

Classes

class  FBPropertyListModel
 List: Model More...
 
class  FBPropertyListDeformer
 
class  FBModel
 Model class. More...
 
class  FBModelNull
 Null object class. More...
 
class  FBModelRoot
 Root object class. More...
 
class  FBModelMarker
 Model marker class. More...
 
class  FBModelSkeleton
 Root object class. More...
 
class  FBPropertyListModelSkeleton
 PropertyList: ModelSkeleton. More...
 
class  FBModelCube
 Cube model class. More...
 
class  FBModelPlane
 Plane model class. More...
 
class  FBCluster
 Weighting interface for meshes. More...
 
class  FBModelVertexData
 
class  FBDeformer
 Base Model deformer class. More...
 
class  FBDeformerPointCache
 Base Model deformer class. More...
 
class  FBPointCacheFile
 Base Model deformer class. More...
 

Namespaces

 ORSDK2018
 

Macros

#define FBSDK_DLL   K_DLLIMPORT
 Be sure that FBSDK_DLL is defined only once... More...
 
#define FBStorableCustomModelImplementation(ClassName, Desc)
 Custom Storable Model Class implementation. More...
 

Typedefs

typedef class FBPropertyBase< FBCluster *, kFBPT_object > FBPropertyBaseCluster
 
typedef class FBPropertyBaseComponent< FBCluster * > FBPropertyCluster
 
typedef class FBPropertyBase< FBModelVertexData *, kFBPT_object > FBPropertyBaseModelVertexData
 
typedef class FBPropertyBaseComponent< FBModelVertexData * > FBPropertyModelVertexData
 
typedef class FBPropertyBase< FBPointCacheFile *, kFBPT_object > FBPropertyBasePointCacheFile
 
typedef class FBPropertyBaseComponent< FBPointCacheFile * > FBPropertyPointCacheFile
 
typedef class FBPropertyBaseList< FBModel * > FBPropertyBaseListModel
 
typedef class FBPropertyBaseEnum< enum FBModelShadingMode > FBPropertyModelShadingMode
 
typedef class FBPropertyBaseEnum< enum FBModelTransformationType > FBPropertyModelTransformationType
 
typedef class FBPropertyBaseEnum< enum FBModelRotationOrder > FBPropertyModelRotationOrder
 
typedef class FBPropertyBaseEnum< enum FBMarkerResolutionLevel > FBPropertyMarkerResolutionLevel
 
typedef class FBPropertyBaseEnum< enum FBMarkerLook > FBPropertyMarkerLook
 
typedef class FBPropertyBaseEnum< enum FBMarkerType > FBPropertyMarkerType
 
typedef class FBPropertyBaseList< FBModelSkeleton * > FBPropertyBaseListModelSkeleton
 
typedef class FBPropertyBaseEnum< enum FBClusterMode > FBPropertyClusterMode
 
typedef class FBPropertyBaseEnum< enum FBDeformerType > FBPropertyDeformerType
 

Enumerations

enum  FBModelTransformationType {
  kModelTransformation, kModelRotation, kModelTranslation, kModelScaling,
  kModelTransformation_Geometry, kModelInverse_Transformation, kModelInverse_Rotation, kModelInverse_Translation,
  kModelInverse_Scaling, kModelInverse_Transformation_Geometry
}
 Types of transformation vector/matrices possible. More...
 
enum  FBModelShadingMode {
  kFBModelShadingDefault, kFBModelShadingWire, kFBModelShadingFlat, kFBModelShadingLight,
  kFBModelShadingHard, kFBModelShadingTexture, kFBModelShadingAll
}
 Modes for model shading. More...
 
enum  FBModelRenderPass { kFBModelRenderPassStandard, kFBModelRenderPassPick }
 Model Render pass. More...
 
enum  FBModelRotationOrder {
  kFBEulerXYZ = 0, kFBEulerXZY, kFBEulerYZX, kFBEulerYXZ,
  kFBEulerZXY, kFBEulerZYX, kFBSphericXYZ
}
 Ways to apply Rotation. More...
 
enum  FBModelCullingMode { kFBCullingOff, kFBCullingOnCCW, kFBCullingOnCW }
 Model Culling Mode. More...
 
enum  FBModelEvaluationTaskType { kFBModelEvaluationTranform, kFBModelEvaluationBBox, kFBModelEvaluationDeform }
 
enum  FBModelHiercharyTraverserType { kModelTraverserDepthFirst, kModelTraverserBreadthFirst }
 Types of hierarchy traverser search type. More...
 
enum  FBSelectionAction {
  kFBManipulatorReplace = 0, kFBManipulatorAdd, kFBManipulatorRemove, kFBManipulatorToggle,
  kFBManipulatorAddAll, kFBManipulatorRemoveAll
}
 Selection mode when selecting component. More...
 
enum  FBMarkerResolutionLevel { kFBMarkerLowResolution, kFBMarkerMediumResolution, kFBMarkerHighResolution }
 Resolution of marker mesh sphere and capsule (Quality). More...
 
enum  FBMarkerLook {
  kFBMarkerLookCube, kFBMarkerLookHardCross, kFBMarkerLookLightCross, kFBMarkerLookSphere,
  kFBMarkerLookCapsule, kFBMarkerLookSquare, kFBMarkerLookCircle, kFBMarkerLookBone,
  kFBMarkerLookStick, kFBMarkerLookBox, kFBMarkerLookNone, kFBMarkerLookRigidGoal,
  kFBMarkerLookRotationGoal, kFBMarkerLookAimRollGoal
}
 Look of the marker. More...
 
enum  FBMarkerType { kFBMarkerTypeStandard, kFBMarkerTypeOptical, kFBMarkerTypeFKEffector, kFBMarkerTypeIKEffector }
 Type of the marker. More...
 
enum  FBClusterMode { kFBClusterNormalize, kFBClusterAdditive, kFBClusterTotal100 }
 Different clustering modes. More...
 
enum  FBDeformerType { kFBDeformerUnkown, kFBDeformerSkeleton, kFBDeformerPointCache }
 Determine the deformer type. More...
 

Functions

FBModelList * FBCreateModelList ()
 Create a FBModelList object. More...
 
void FBDestroyModelList (FBModelList *pModelList)
 Delete a FBModelList object. More...
 
FBModel * FBFindModelByLabelName (const char *pModelLabelName)
 Find a model in the scene by its label name. More...
 
FBModel * FBFindModelByUniqueColorId (const FBColor &pColor, int *pSubItemIndex=((void *) 0))
 Find a model in the scene by its unique color id. More...
 
FBModel * FBLoadFbxPrimitivesModel (const char *pModelName)
 Load a model. More...
 
void FBFindModelsOfType (FBModelList &pList, int pTypeInfo, FBModel *pParent=((void *) 0))
 Find all models of a certain type in the scene. More...
 
void FBGetSelectedModels (FBModelList &pList, FBModel *pParent=((void *) 0), bool pSelected=true, bool pSortBySelectOrder=false)
 Find all models that are selected (if pSelected is true) Searches recursively from a root model for models that are selected, and adds them to a list of models. More...
 
void FBBeginChangeAllModels ()
 Call begin change to all models (need to be closed). More...
 
void FBEndChangeAllModels ()
 Call end change to all models (should be first open). More...
 
void FBModelTransactionBegin ()
 FBModelTransactionBegin. More...
 
void FBModelTransactionEnd ()
 FBModelTransactionEnd. More...
 

Macro Definition Documentation

#define FBSDK_DLL   K_DLLIMPORT

Be sure that FBSDK_DLL is defined only once...

Definition at line 48 of file fbmodel.h.

#define FBStorableCustomModelImplementation (   ClassName,
  Desc 
)
Value:
const char* ClassName::FbxGetObjectSubType(){ return #ClassName; }\
HIObject RegisterStorable##ClassName##Create(HIObject /*pOwner*/, const char* pName, void* /*pData*/){\
ClassName* Class = new ClassName(pName);\
Class->mAllocated = true;\
if( Class->FBCreate() ){\
__FBRemoveModelFromScene( Class->GetHIObject() ); /* Hack in MoBu2013, we shouldn't add object to the scene/entity automatically*/\
return Class->GetHIObject();\
} else {\
delete Class;\
return NULL;}}\
FBLibraryModule(ClassName##Storable){\
FBString lGroup = "FbxStorable/Model";\
FBRegisterObject(ClassName##R2, lGroup, #ClassName, Desc, RegisterStorable##ClassName##Create, true, NULL);\
FBSetStoreableCustomModelRegistered();}\
#define NULL
Definition: kaydara.h:169

Custom Storable Model Class implementation.

This should be placed in the source code file for a custom model class.

+ Examples:

Definition at line 67 of file fbmodel.h.

Go to the source code of this file.