fbxconstantentryview.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 fbxconstantentryview.h
  9. #ifndef _FBXSDK_SCENE_SHADING_CONSTANT_ENTRY_VIEW_H_
  10. #define _FBXSDK_SCENE_SHADING_CONSTANT_ENTRY_VIEW_H_
  11. #include <fbxsdk/fbxsdk_def.h>
  12. #include <fbxsdk/scene/shading/fbxentryview.h>
  13. #include <fbxsdk/fbxsdk_nsbegin.h>
  14. class FbxBindingTableEntry;
  15. /** FbxConstantEntryView represents constant string entry in entry tables.
  16. * The constant string can be used as source or destination for the binding entry.
  17. * \see FbxBindingTableEntry and FbxBindingTable.
  18. */
  19. class FBXSDK_DLL FbxConstantEntryView : public FbxEntryView
  20. {
  21. public:
  22. /** Name of the entry type used in the binding entry.
  23. * It should be "FbxConstantEntry" in this case.
  24. */
  25. static const char* sEntryType;
  26. /** Constructor.
  27. * \param pEntry The binding table entry to create the entry view for.
  28. * \param pAsSource \c true to create the entry view as source, \c false as destination.
  29. * \param pCreate \c true to create the entry view, \c false otherwise.
  30. */
  31. FbxConstantEntryView( FbxBindingTableEntry* pEntry, bool pAsSource, bool pCreate = false );
  32. //! Destructor.
  33. ~FbxConstantEntryView();
  34. /** Get the constant string for binding entry.
  35. * \return The constant string.
  36. */
  37. const char* GetConstantName() const;
  38. /** Set the constant string for binding entry.
  39. * \param pName The constant string to set.
  40. */
  41. void SetConstantName(const char* pName);
  42. /** Get the entry type.
  43. * \return Entry type as string "FbxConstantEntry".
  44. * \remarks Always use EntryType() to get the right entry type.
  45. */
  46. virtual const char* EntryType() const;
  47. };
  48. #include <fbxsdk/fbxsdk_nsend.h>
  49. #endif /* _FBXSDK_SCENE_SHADING_CONSTANT_ENTRY_VIEW_H_ */