Public Member Functions | Static Public Attributes

FbxSemanticEntryView Class Reference

Search for all occurrences

Detailed Description

FbxSemanticEntryView stores a binding corresponding to a semantic within a shader file.

A shader semantic is a parameter, a constant or an operator. So a shader semantic could bind with FbxProperty ( parameter, constant) and FbxBindingOperator (operator).

Here is a code snippet to show how it used.

 FbxProperty lProp;
 FbxBindingTable lTable;
 FbxBindingTableEntry& lEntry = lBindingTable.AddNewEntry();
 FbxPropertyEntryView lSrcView( lEntry, true, true);
 lSrcView.SetProperty( lProp.GetHierarchicalName());
 FbxSemanticEntryView lDstView( &pEntry, false, true );
 lDstView.SetSemantic( lProp.Getname());
See also:
FbxBindingTableEntry and FbxBindingTable.

Definition at line 42 of file fbxsemanticentryview.h.

#include <fbxsemanticentryview.h>

Inheritance diagram for FbxSemanticEntryView:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void SetSemantic (const char *pSemantic)
 Set the semantic to the binding entry.
FbxString GetSemantic (bool pAppendIndex=true) const
 Get the semantic from the binding entry.
int GetIndex () const
 Get the semantic index suffix.
virtual const char * EntryType () const
 Get the entry type.

Static Public Attributes

static const char * sEntryType
 Name of the entry type used in the binding entry.

Constructor and Destructor.

 FbxSemanticEntryView (FbxBindingTableEntry *pEntry, bool pAsSource, bool pCreate=false)
 Constructor.
virtual ~FbxSemanticEntryView ()
 Destructor.

Constructor & Destructor Documentation

FbxSemanticEntryView ( FbxBindingTableEntry pEntry,
bool  pAsSource,
bool  pCreate = false 
)

Constructor.

Parameters:
pEntryThe binding table entry to create the entry view for.
pAsSourcetrue to create the entry view as source, false as destination.
pCreatetrue to create the entry view, false otherwise.
virtual ~FbxSemanticEntryView ( ) [virtual]

Destructor.


Member Function Documentation

void SetSemantic ( const char *  pSemantic)

Set the semantic to the binding entry.

Parameters:
pSemanticThe semantic string to set.
FbxString GetSemantic ( bool  pAppendIndex = true) const

Get the semantic from the binding entry.

Parameters:
pAppendIndextrue if the returned semantic append a index, false otherwise.
Returns:
The semantic.
int GetIndex ( ) const

Get the semantic index suffix.

Returns:
Semantic index suffix.
virtual const char* EntryType ( ) const [virtual]

Get the entry type.

Returns:
Entry type as string "FbxSemanticEntry".
Remarks:
Always use EntryType() to get the right entry type.

Reimplemented from FbxEntryView.


Member Data Documentation

const char* sEntryType [static]

Name of the entry type used in the binding entry.

It should be "FbxSemanticEntry" in this case.

Reimplemented from FbxEntryView.

Definition at line 49 of file fbxsemanticentryview.h.


The documentation for this class was generated from the following file:

FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView
FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView FbxSemanticEntryView