AcPlPlotFactory.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef _ACPLPLOTFACTORY_H
  11. #define _ACPLPLOTFACTORY_H
  12. //
  13. // AcPlPlotFactory - makes plot engines
  14. //
  15. #include "AcPl.h"
  16. class AcPlPlotEngine;
  17. class AcPlPlotFactory
  18. {
  19. public:
  20. enum PreviewEngineFlags {
  21. kShowPlot = 0x0001, // Allow plot from preview state
  22. kShowNextSheet = 0x0002, // Allow "Next Sheet" from preview state
  23. kShowPreviousSheet = 0x0004 // Allow "Previous Sheet" from preview state
  24. };
  25. static ACPL_PORT Acad::ErrorStatus createPublishEngine(AcPlPlotEngine *& pEngine);
  26. static ACPL_PORT Acad::ErrorStatus createPreviewEngine(AcPlPlotEngine *& pPreview,
  27. long nPreviewFlags = kShowPlot);
  28. };
  29. // Possible plotting system states
  30. enum ProcessPlotState
  31. {
  32. kNotPlotting = 0, // No plot in progress
  33. kForegroundPlotting, // Plot is in progress in the current process
  34. kBackgroundPlotting // Plot is in progress in a background process,
  35. // this process is the foreground process.
  36. };
  37. // Method for determining current state of the plotting subsystem
  38. ACPL_PORT ProcessPlotState __stdcall acplProcessPlotState();
  39. #endif // _ACPLPLOTFACTORY_H