FBX C++ API Reference
fbxobjectfilter.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_SCENE_OBJECT_FILTER_H_
14 #define _FBXSDK_SCENE_OBJECT_FILTER_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
18 #include <fbxsdk/core/fbxobject.h>
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
26 {
27 public:
29  virtual ~FbxObjectFilter() {}
30 
34  virtual bool Match(const FbxObject * pObjectPtr) const = 0;
35 
39  virtual bool NotMatch(const FbxObject * pObjectPtr) const { return !Match(pObjectPtr); };
40 };
41 
46 {
47 public:
55  inline FbxNameFilter( const char* pTargetName ) : mTargetName( pTargetName ) {};
56 
58  virtual ~FbxNameFilter() {}
60 
64  virtual bool Match(const FbxObject * pObjectPtr) const { return pObjectPtr ? mTargetName == pObjectPtr->GetName() : false; }
65 
66 /*****************************************************************************************************************************
67 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
68 *****************************************************************************************************************************/
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 private:
71  FbxString mTargetName;
72 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
73 };
74 
75 #include <fbxsdk/fbxsdk_nsend.h>
76 
77 #endif /* _FBXSDK_SCENE_OBJECT_FILTER_H_ */
FBX SDK environment definition.
This object represents a filter criteria on an object.
virtual ~FbxObjectFilter()
Destructor.
Utility class to manipulate strings.
Definition: fbxstring.h:66
virtual bool NotMatch(const FbxObject *pObjectPtr) const
Tells if this filter does NOT match the given object.
virtual ~FbxNameFilter()
Destructor.
The base class of most FBX objects.
Definition: fbxobject.h:157
This class represents a name filter on an object.
#define FBXSDK_DLL
Definition: fbxarch.h:173
FbxNameFilter(const char *pTargetName)
Constructor.
const char * GetName() const
Returns the full name of this object.
virtual bool Match(const FbxObject *pObjectPtr) const
Tells if this filter match the given object.