00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc. 00008 * 477 Richmond Street West 00009 * Toronto, Ontario, M5V 3E7 00010 * Canada 00011 * 416-504-9876 00012 * 00013 * NAME: SOP Library (C++) 00014 * 00015 * COMMENTS: 00016 * 00017 */ 00018 00019 #ifndef __SOP_CaptureLayerData_h__ 00020 #define __SOP_CaptureLayerData_h__ 00021 00022 #include "SOP_API.h" 00023 #include <UT/UT_IntArray.h> 00024 #include <UT/UT_FloatArray.h> 00025 #include <UT/UT_PtrArray.h> 00026 #include <UT/UT_NTStreamUtil.h> 00027 00028 class OP_SaveFlags; 00029 00030 class SOP_API SOP_CaptureLayerData 00031 { 00032 public: 00033 SOP_CaptureLayerData(); 00034 SOP_CaptureLayerData(SOP_CaptureLayerData &other); 00035 ~SOP_CaptureLayerData(); 00036 00037 int getStencilSize() const; 00038 void setStencilSize(int size); 00039 00040 void clear(); 00041 float getStencilValue(int snum, int ptnum) const; 00042 void setStencilValue(int snum, int ptnum, float value); 00043 int getNumStencils() const; 00044 void removeStencil(int snum); 00045 00046 int save(ostream &os, const OP_SaveFlags &flags, 00047 const char *name, const char *path_prefix); 00048 bool load(UT_IStream &is, const char *ext); 00049 00050 private: 00051 int myStencilSize; 00052 UT_PtrArray<float *> myStencils; 00053 }; 00054 00055 #endif
1.5.9