FBX C++ API Reference
FbxCriteria Class Reference

#include <fbxquery.h>

Class Description

Defines a filtering criteria for a query of objects, connections and properties, so that only those satisfying the criteria are affected by the query.

Some examples of kinds of criteria are object type, connection type, or property. Criteria can be combined using logical operators such as "and" and "or".

Note
Objects are basic elements in FBX. Each of them has a hierarchy type and some properties. Objects and properties can be connected through a connection to represent a relationship between them. (e.g. child-parent, container membership, reference, etc.,). In a query, you could select object or properties based on these criteria. Here are some examples:
FbxObject* lObject = FbxObject::Create(lManager, "Object");
int lSrcPropertyCount = lObject->RootProperty.GetSrcCount(FbxCriteria::IsProperty());
See also
FbxQuery
FbxProperty::GetSrcObjectCount(const FbxCriteria&) const
FbxCollection::GetMemberCount(const FbxCriteria&) const

Definition at line 104 of file fbxquery.h.

Public Member Functions

FbxCriteria operator && (const FbxCriteria &pCriteria) const
 Gets a logical conjunction (and) criteria from this and the specified criteria. More...
 
FbxCriteria operator|| (const FbxCriteria &pCriteria) const
 Gets a logical disjunction (or) criteria from this and the specified criteria. More...
 
FbxCriteria operator! () const
 Returns a negated version of the criteria. More...
 
FbxQueryGetQuery () const
 Retrieves the query. More...
 

Static Public Member Functions

static FbxCriteria ObjectType (const FbxClassId &pClassId)
 Creates a new query criteria that only selects objects which have a specific class ID or derive from a class with a specific class ID. More...
 
static FbxCriteria ObjectTypeStrict (const FbxClassId &pClassId)
 Creates a new query criteria that only selects objects which have a specific class ID. More...
 
static FbxCriteria IsProperty ()
 Creates a new query criteria that only selects properties. More...
 

Member Function Documentation

◆ ObjectType()

static FbxCriteria ObjectType ( const FbxClassId pClassId)
static

Creates a new query criteria that only selects objects which have a specific class ID or derive from a class with a specific class ID.

Parameters
pClassIdThe base type class ID

◆ ObjectTypeStrict()

static FbxCriteria ObjectTypeStrict ( const FbxClassId pClassId)
static

Creates a new query criteria that only selects objects which have a specific class ID.

Parameters
pClassIdThe type class ID

◆ IsProperty()

static FbxCriteria IsProperty ( )
static

Creates a new query criteria that only selects properties.

◆ operator &&()

FbxCriteria operator&& ( const FbxCriteria pCriteria) const

Gets a logical conjunction (and) criteria from this and the specified criteria.

Parameters
pCriteriaThe specified criteria

◆ operator||()

FbxCriteria operator|| ( const FbxCriteria pCriteria) const

Gets a logical disjunction (or) criteria from this and the specified criteria.

Parameters
pCriteriaThe specified criteria

◆ operator!()

FbxCriteria operator! ( ) const

Returns a negated version of the criteria.

◆ GetQuery()

FbxQuery* GetQuery ( ) const

Retrieves the query.

Returns
The query of this criteria

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