InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IColorData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jack Kirstein
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 // Purpose of Interface:
24 // This persistant interface is the storage interface for colors. Colors are stored
25 // as components and a space tag.
26 //
27 //========================================================================================
28 
29 #ifndef __IColorData__
30 #define __IColorData__
31 
32 #include "IPMUnknown.h"
33 #include "ColorSystemID.h"
34 #include "GraphicTypes.h"
35 
36 #include "K2Vector.h"
38 
41 class IColorData : public IPMUnknown
42 {
43  public:
44 
45  enum { kDefaultIID = IID_ICOLORDATA };
46 
52  virtual int32 GetColorSpace() const = 0;
53 
57  virtual const ColorArray& GetColorData() const = 0;
58 
65  virtual int32 GetNumComponents() const = 0;
66 
71  virtual PMReal GetNthComponent( int32 index ) const = 0;
72 
78  virtual void SetColorSpace(int32 space) = 0;
79 
85  virtual void SetColorData(const ColorArray& componentArray) = 0;
86 
87 
93  virtual void SetColorData(int32 space, const ColorArray& componentArray) = 0;
94 
99  virtual bool16 IsEqual (const IColorData* iColorData) const = 0;
100 
104  virtual void SetConvertToHSB(bool16 convertToHSB) = 0;
105 
108  virtual bool16 GetConvertToHSB() const = 0;
109 
110 
111 };
112 
113 #endif