InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPencilPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tashana Landray
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IPencilPrefs__
25 #define __IPencilPrefs__
26 
27 #include "IPMUnknown.h"
28 #include "SplineID.h"
29 
30 class IPencilPrefs : public IPMUnknown
31 {
32  public:
33 
34  enum { kDefaultIID = IID_IPENCILPREFS };
35 
36  // ---- [mburbidg 7-10-02] Methods that return constants. This is to work around
37  // the fact that you can't declare non-integral constants in a header file.
38  // At one point these were declared as constants in the implementation, but
39  // then they couldn't be accessed outside the plug-in of the implementation.
40 
41  static PMReal GetDefaultPencilFidelity() { return 2.5; }
42  static PMReal GetDefaultPencilSmoothness() { return 0.0; }
43  static PMReal GetDefaultPencilEditTolerance() { return 12.0; }
44  static bool16 GetDefaultPencilEditSelected() { return kTrue; }
45  static bool16 GetDefaultPencilSelected() { return kTrue; }
46 
47  //Fidelity (point tolerance when fitting to curve)
48  virtual void SetFidelity(const PMReal& fidelity) = 0;
49  virtual PMReal GetFidelity() = 0;
50 
51  //Smoothness when fitting to curve
52  virtual void SetSmoothness(const PMReal& smoothness) = 0;
53  virtual PMReal GetSmoothness() = 0;
54 
56  virtual void SetEditTolerance(const PMReal& editTolerance) = 0;
57  virtual PMReal GetEditTolerance() = 0;
58 
59  //Whether or not edit the newly-created spline is selected
60  virtual void SetEditSelected(const bool16 editSelected) = 0;
61  virtual bool16 GetEditSelected() = 0;
62 
63  //Whether or not the newly-created spline is selected
64  virtual void SetSelected(const bool16 selected) = 0;
65  virtual bool16 GetSelected() = 0;
66 };
67 
68 #endif