InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IStandOffContourWrapSettings.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Stephens
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 __IStandOffContourWrapSettings__
25 #define __IStandOffContourWrapSettings__
26 
27 #include "IPMUnknown.h"
28 
29 #include "StandOffID.h"
30 
33 {
34 public:
35  enum { kDefaultIID = IID_ICONTOURWRAPSETTINGS };
36 
37  typedef enum {
38  kInvalid = -1,
39  kGraphicBounds = 0, // use the bounds of the graphic
40  kEdgeDetection = 1, // look at the pixel values to find darker areas of the image
41  kAlpha = 2, // Use edge detection algorithm on the alpha channel
42  kEmbeddedPath = 3, // Use the embedded path
43  kGraphicFrame, // Use the graphic's frame
44  kSameAsClip, // Use the graphic's clipping
45  kSelectSubject // Do Smart subject Detection using Adobe Sensei
46  } ContourWrapType;
47 
48  enum {
49  kDefaultPathIndex = -1 // This value indicates that the path used is the one named by '8BIM' resource ID 2999.
50  };
51 
52  virtual ContourWrapType GetType() const = 0;
53 
54  virtual PMReal GetTolerance() const = 0;
55 
56  virtual uint8 GetThreshold() const = 0;
57 
58  virtual uint8 GetAllowHoles() const = 0;
59 
60  virtual void SetType(ContourWrapType type) = 0;
61 
62  virtual void SetTolerance( PMReal Tolerance) = 0;
63 
64  virtual void SetThreshold(uint8 Threshold) = 0;
65 
66  virtual void SetAllowHoles(bool8 AllowHoles) = 0;
67 
68  // If the type is kAlpha and there are multiple
69  // alpha channels, then use this zero-based index to determine
70  // which alpha channel to use.
71  virtual void SetAlphaIndex( int16 index ) = 0;
72 
73  virtual int16 GetAlphaIndex( void ) const = 0;
74 
75  // If the type is kEmbeddedPath and there are multiple
76  // embedded paths, then use this zero-based index to determine
77  // which path to use.
78  virtual void SetEmbeddedPathIndex( int16 index ) = 0;
79 
80  // Warning: the following Get method may return a value
81  // of kDefaultPathIndex. This value indicates that the path
82  // used is the one named by '8BIM' resource ID 2999.
83  virtual int16 GetEmbeddedPathIndex( void ) const = 0;
84 
85  virtual void CopyTo( IStandOffContourWrapSettings *pCopyTo ) const = 0;
86 };
87 
88 #endif