#include "ortoolview3d_tool.h"
#define ORTOOLVIEW3D__CLASS ORTOOLVIEW3D__CLASSNAME
#define ORTOOLVIEW3D__LABEL "View3D"
#define ORTOOLVIEW3D__DESC "OR - 3D Viewer Tool"
ORTOOLVIEW3D__LABEL,
ORTOOLVIEW3D__DESC,
bool ORToolView3D::FBCreate()
{
StartSize[0] = 300;
StartSize[1] = 300;
UICreate ();
UIConfigure ();
UIReset ();
OnShow.Add (
this, (
FBCallback) &ORToolView3D::EventToolShow );
OnIdle.Add (
this, (
FBCallback) &ORToolView3D::EventToolIdle );
OnResize.Add(
this, (
FBCallback) &ORToolView3D::EventToolResize );
OnPaint.Add (
this, (
FBCallback) &ORToolView3D::EventToolPaint );
OnInput.Add (
this, (
FBCallback) &ORToolView3D::EventToolInput );
return true;
}
void ORToolView3D::UICreate()
{
int lS = 4;
AddRegion( "LabelDirections", "LabelDirections",
AddRegion( "View3D", "View3D",
SetControl ( "LabelDirections", mLabelDirections );
SetView ( "View3D", mView );
}
void ORToolView3D::UIConfigure()
{
mLabelDirections.Caption = "This is a demonstration of the FBView UI element and\n"
"the FBRenderer class for viewing the 3D scene.";
}
void ORToolView3D::UIReset()
{
}
void ORToolView3D::FBDestroy()
{
OnShow.Remove (
this, (
FBCallback) &ORToolView3D::EventToolShow );
OnIdle.Remove (
this, (
FBCallback) &ORToolView3D::EventToolIdle );
OnPaint.Remove (
this, (
FBCallback) &ORToolView3D::EventToolPaint );
OnInput.Remove (
this, (
FBCallback) &ORToolView3D::EventToolInput );
OnResize.Remove (
this, (
FBCallback) &ORToolView3D::EventToolResize );
}
{
RefreshView();
}
void ORToolView3D::RefreshView()
{
mView.Refresh(true);
}
{
FBEventShow lEvent( pEvent );
if( lEvent.Shown )
{
}
else
{
}
}
{
}
{
}
{
}
bool ORToolView3D::FbxStore ( FBFbxObject* pFbxObject,
kFbxObjectStore pStoreWhat )
{
pFbxObject->FieldWriteBegin( "ORToolView3DSection" );
{
}
pFbxObject->FieldWriteEnd();
return true;
}
bool ORToolView3D::FbxRetrieve( FBFbxObject* pFbxObject,
kFbxObjectStore pStoreWhat )
{
pFbxObject->FieldReadBegin( "ORToolView3DSection" );
{
}
pFbxObject->FieldReadEnd();
return true;
}