29 #define TAKE_HIGH_PRIORITY 10 // Data is applied before other data
30 #define TAKE_NORMAL_PRIORITY 100
31 #define TAKE_LOW_PRIORITY 1000 // Data is applied last
37 myId(id), myRefCount(0), myPriority(priority) { }
45 virtual bool canDuplicateForNode(
int op_id)
const = 0;
47 virtual TAKE_Data *duplicateForNode(
int op_id)
const = 0;
50 virtual void storeCurrent() = 0;
52 virtual void applyData() = 0;
54 virtual void getOpIdString(
UT_String &str) = 0;
57 virtual void markActive() = 0;
58 virtual void markInactive() = 0;
68 virtual int64 getMemoryUsage()
const = 0;
73 virtual bool canSaveInMasterTake()
const = 0;
75 virtual int save(std::ostream &os,
int binary)
const = 0;
PXL_API const char * getDescription(const ColorSpace *space)
Return the description of the color space.
const GLuint GLenum const void * binary
TAKE_Data(const TAKE_DataId &id, int priority)
const TAKE_DataId & getId() const
LeafData & operator=(const LeafData &)=delete
void bumpRefCount(int dir)