fbxpropertyentryview.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /****************************************************************************************
  2. Copyright (C) 2015 Autodesk, Inc.
  3. All rights reserved.
  4. Use of this software is subject to the terms of the Autodesk license agreement
  5. provided at the time of installation or download, or which otherwise accompanies
  6. this software in either electronic or hard copy form.
  7. ****************************************************************************************/
  8. //! \file fbxpropertyentryview.h
  9. #ifndef _FBXSDK_SCENE_SHADING_PROPERTY_ENTRY_VIEW_H_
  10. #define _FBXSDK_SCENE_SHADING_PROPERTY_ENTRY_VIEW_H_
  11. #include <fbxsdk/fbxsdk_def.h>
  12. #include <fbxsdk/scene/shading/fbxentryview.h>
  13. #include <fbxsdk/scene/shading/fbxbindingtableentry.h>
  14. #include <fbxsdk/fbxsdk_nsbegin.h>
  15. /** FbxPropertyEntryView represents property entry in entry tables.
  16. * The property can be used as source or destination for the binding entry.
  17. * Use this class to manipulate binding table's attributes.
  18. *
  19. * \code Here is a code snippet to show how it used.
  20. * FbxProperty lProp;
  21. * FbxBindingTable lTable;
  22. * FbxBindingTableEntry& lEntry = lBindingTable.AddNewEntry();
  23. * FbxPropertyEntryView lView( lEntry, true, true);
  24. * lView.SetProperty( lProp.GetName());
  25. * \endcode
  26. *
  27. * \see FbxBindingTableEntry and FbxBindingTable.
  28. *
  29. * \nosubgrouping
  30. */
  31. class FBXSDK_DLL FbxPropertyEntryView : public FbxEntryView
  32. {
  33. public:
  34. /** Name of the entry type used in the binding entry.
  35. * It should be "FbxPropertyEntry" in this case.
  36. */
  37. static const char* sEntryType;
  38. /**
  39. * \name Constructor and Destructor.
  40. */
  41. //@{
  42. /** Constructor.
  43. * \param pEntry The binding table entry to create the entry view for.
  44. * \param pAsSource \c true to create the entry view as source, \c false as destination.
  45. * \param pCreate \c true to create the entry view, \c false otherwise.
  46. */
  47. FbxPropertyEntryView( FbxBindingTableEntry* pEntry, bool pAsSource, bool pCreate = false );
  48. //! Destructor.
  49. ~FbxPropertyEntryView();
  50. //@}
  51. /** Get the property name from the binding entry.
  52. * \return The property name.
  53. */
  54. const char* GetProperty() const;
  55. /** Set the property name to the binding entry.
  56. * \param pPropertyName The property name to set.
  57. */
  58. void SetProperty(const char* pPropertyName);
  59. /** Get the entry type.
  60. * \return Entry type as string "FbxPropertyEntry".
  61. * \remarks Always use EntryType() to get the right entry type.
  62. */
  63. virtual const char* EntryType() const;
  64. };
  65. #include <fbxsdk/fbxsdk_nsend.h>
  66. #endif /* _FBXSDK_SCENE_SHADING_PROPERTY_ENTRY_VIEW_H_ */