PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFB3DModel
Wrapper Class for the I3DModel interface.
#include <SFB3DModel.h.hpp>
class SFB3DModel : public SFBQuery;
SFMTYPEDEFWRAPPER(SFB3DModel)

Inheritance diagram

 Inheritance diagram of SFB3DModelClass

Version

BREW 2.0 BREW 2.1 BREW 3.1 BREW 4.0
X O X X

Reference

BREW API I3DModel

Member

Public Functions
SFCError Draw( SFB3DSmpConstRef i3D )
Draw a 3D model.
SFCError GetModelData( AEE3DModelData** modelOut )
Get the model information for an I3DModel instance.
SFCError GetModelVertexList( AEE3DVertex** vertexListOut )
Get the vertex list stored in an I3DModel instance.
SFCError Load( ACharConstPtr fileName )
Load a 3D model. The 3D model must be in the Q3D file format.
SFCError Load( SFXAnsiStringConstRef fileName )
Load a 3D model. The 3D model must be in the Q3D file format.
static
SFB3DModelSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFB3DModel instance.
static
SFB3DModelSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFB3DModel instance.
SFCError SetSegmentMVT( AEE3DTransformMatrix* trans , SInt16 index )
Set the Model View Transformation Matrix (MVT) for a segment in the model.
SFCError SetTextureTbl( AEE3DTexture* texture , UInt16 index )
Set the texture table in a model.
SFCError QueryInterface( AEECLSID clsid , VoidHandle handle ) (inherits from SFBQuery)
Ask an object for another API contract from the object in question.
SFCError QueryInterface( AEECLSID clsid , SFBBaseSmpPtr handle ) (inherits from SFBQuery)
Ask an object for another API contract from the object in question.
SFBBaseSmp QueryInterface( AEECLSID clsid ) (inherits from SFBQuery)
Ask an object for another API contract from the object in question.
Void Self( AEECLSID clsidReq , SFBQuerySmpPtr clone , AEECLSID clsidImp ) (inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
SFBQuerySmp Self( AEECLSID clsidReq , AEECLSID clsidImp ) (inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
Protected Functions
static
SFBBaseSmp
FactoryByCreate( AEECLSID id , SFCErrorPtr exception = null ) (inherits from SFBBase)
Create the instance for the specified ClassID's interface.
static
SFBBaseSmp
FactoryByQuery( SFBQuerySmpConstRef query , AEECLSID id , SFCErrorPtr exception = null ) (inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.

SFB3DModel::Draw
Draw a 3D model.
[ public ]
SFCError Draw(
    SFB3DSmpConstRef i3D   // pointer to SFB3D interface
);

Description

The model data contained in the pI3DModel interface must be in the AEE3DModelData format.

Reference

BREW API I3DModel_Draw


SFB3DModel::GetModelData
Get the model information for an I3DModel instance.
[ public ]
SFCError GetModelData(
    AEE3DModelData** modelOut   // address of a pointer to a model structure
);

Reference

BREW API I3DModel_GetModelData


SFB3DModel::GetModelVertexList
Get the vertex list stored in an I3DModel instance.
[ public ]
SFCError GetModelVertexList(
    AEE3DVertex** vertexListOut   // address of a pointer to a vertex list
);

Reference

BREW API I3DModel_GetModelVertexList


SFB3DModel::Load
Load a 3D model. The 3D model must be in the Q3D file format.
[ public ]
SFCError Load(
    ACharConstPtr fileName   // filename string
);
[ public ]
SFCError Load(
    SFXAnsiStringConstRef fileName   // filename string
);

Reference

BREW API I3DModel_Load


SFB3DModel::NewInstance
Create a new SFB3DModel instance.
[ public, static ]
SFB3DModelSmp NewInstance(
    SFCErrorPtr exception = null   // Error
);
[ public, static ]
SFB3DModelSmp NewInstance(
    AEECLSID id                    // Class ID
    SFCErrorPtr exception = null   // Error
);

SFB3DModel::SetSegmentMVT
Set the Model View Transformation Matrix (MVT) for a segment in the model.
[ public ]
SFCError SetSegmentMVT(
    AEE3DTransformMatrix* trans   // pointer to a transformation matrix
    SInt16 index                  // segment index -1 will set all segments using this transformation
);

Reference

BREW API I3DModel_SetSegmentMVT


SFB3DModel::SetTextureTbl
Set the texture table in a model.
[ public ]
SFCError SetTextureTbl(
    AEE3DTexture* texture   // pointer to a texture
    UInt16 index            // index for the model’s texture table
);

Reference

BREW API I3DModel_SetTextureTbl