#include <kfbxquery.h>
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"
KFbxObject* lObject = KFbxObject::Create(lManager, "Object"); int lSrcReferencedObjectCount = lObject->RootProperty.GetSrcObjectCount(KFbxCriteria::ConnectionType(eFbxConnectionReference)); int lSrcLightCount = lObject->RootProperty.GetSrcObjectCount(KFbxCriteria::ObjectType(KFbxLight::ClassId)); int lSrcDeformerCount = lObject->RootProperty.GetSrcObjectCount(KFbxCriteria::ObjectIsA(KFbxDeformer::ClassId)); int lSrcPropertyCount = lObject->RootProperty.GetSrcCount(KFbxCriteria::Property());
KFbxProperty::GetSrcObjectCount(KFbxCriteria const &) const
KFbxCollection::GetMemberCount(KFbxCriteria) const
KFbxLibrary::ImportAssets(KFbxLibrary*, const KFbxCriteria&)
Definition at line 435 of file kfbxquery.h.
Public Member Functions |
|
KFbxCriteria () | |
Default constructor. |
|
KFbxCriteria (KFbxCriteria const &pCriteria) | |
Copy constructor. |
|
~KFbxCriteria () | |
Destructor. |
|
KFbxCriteria & | operator= (KFbxCriteria const &pCriteria) |
Assignment operator. |
|
KFbxCriteria | operator && (KFbxCriteria const &pCriteria) const |
Gets a logical conjunction (and) criteria
from this and the specified criteria. |
|
KFbxCriteria | operator|| (KFbxCriteria const &pCriteria) const |
Gets a logical disjunction (or) criteria
from this and the specified criteria. |
|
KFbxCriteria | operator! () const |
Returns a negated version of the criteria.
|
|
KFbxQuery * | GetQuery () const |
Retrieves the query. |
|
Static Public Member Functions |
|
static KFbxCriteria | ConnectionType (kFbxConnectionType pConnectionType) |
Creates a new query criteria that only
selects the specific connection type. |
|
static KFbxCriteria | ObjectType (kFbxClassId 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. |
|
static KFbxCriteria | ObjectIsA (kFbxClassId pClassId) |
Creates a new query criteria that only
selects objects which have a specific class ID. |
|
static KFbxCriteria | Property () |
Creates a new query criteria that only
selects properties. |
KFbxCriteria | ( | ) | [inline] |
Default constructor.
Definition at line 465 of file kfbxquery.h.
Referenced by ConnectionType(), ObjectIsA(), ObjectType(), operator &&(), operator!(), operator||(), and Property().
KFbxCriteria | ( | KFbxCriteria const & | pCriteria | ) | [inline] |
Copy constructor.
pCriteria | The criteria to be copied |
Definition at line 472 of file kfbxquery.h.
~KFbxCriteria | ( | ) | [inline] |
Destructor.
Definition at line 480 of file kfbxquery.h.
static KFbxCriteria ConnectionType | ( | kFbxConnectionType | pConnectionType | ) | [inline, static] |
Creates a new query criteria that only selects the specific connection type.
pConnectionType | The connection type to query |
Definition at line 440 of file kfbxquery.h.
References KFbxQueryConnectionType::Create(), and KFbxCriteria().
static KFbxCriteria ObjectType | ( | kFbxClassId | pClassId | ) | [inline, 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.
pClassId | The base type class ID |
Definition at line 448 of file kfbxquery.h.
References KFbxQueryClassId::Create(), and KFbxCriteria().
static KFbxCriteria ObjectIsA | ( | kFbxClassId | pClassId | ) | [inline, static] |
Creates a new query criteria that only selects objects which have a specific class ID.
pClassId | The type class ID |
Definition at line 455 of file kfbxquery.h.
References KFbxQueryIsA::Create(), and KFbxCriteria().
static KFbxCriteria Property | ( | ) | [inline, static] |
Creates a new query criteria that only selects properties.
Definition at line 460 of file kfbxquery.h.
References KFbxQueryProperty::Create(), and KFbxCriteria().
KFbxCriteria& operator= | ( | KFbxCriteria const & | pCriteria | ) | [inline] |
Assignment operator.
pCriteria | The criteria to be copied |
Definition at line 489 of file kfbxquery.h.
References KFbxQuery::Unref().
KFbxCriteria operator && | ( | KFbxCriteria const & | pCriteria | ) | const [inline] |
Gets a logical conjunction (and) criteria from this and the specified criteria.
pCriteria | The specified criteria |
Definition at line 508 of file kfbxquery.h.
References KFbxQueryOperator::Create(), eFbxAnd, GetQuery(), and KFbxCriteria().
KFbxCriteria operator|| | ( | KFbxCriteria const & | pCriteria | ) | const [inline] |
Gets a logical disjunction (or) criteria from this and the specified criteria.
pCriteria | The specified criteria |
Definition at line 515 of file kfbxquery.h.
References KFbxQueryOperator::Create(), eFbxOr, GetQuery(), and KFbxCriteria().
KFbxCriteria operator! | ( | ) | const [inline] |
Returns a negated version of the criteria.
Definition at line 520 of file kfbxquery.h.
References KFbxUnaryQueryOperator::Create(), eFbxNot, GetQuery(), and KFbxCriteria().
KFbxQuery* GetQuery | ( | ) | const [inline] |
Retrieves the query.
Definition at line 527 of file kfbxquery.h.
Referenced by operator &&(), operator!(), and operator||().