HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
apex::ColorRamp Class Reference

#include <APEX_Include.h>

+ Inheritance diagram for apex::ColorRamp:

Public Member Functions

 ColorRamp ()
 
 ColorRamp (const UT_Ramp &ramp)
 
- Public Member Functions inherited from UT_Ramp
 UT_Ramp ()
 
 UT_Ramp (const UT_Ramp &copy)
 
 ~UT_Ramp ()
 
int64 getMemoryUsage (bool inclusive) const
 Return the amount of memory owned by this UT_Ramp in bytes. More...
 
void setColorType (UT_ColorType color_space)
 
UT_ColorType getColorType () const
 
void clearAndDestroy ()
 
void ensureRampIsBuilt ()
 Force updating of the ramp after being modified. More...
 
bool getGlobalEnable () const
 
void setGlobalEnable (bool enable)
 
int getNodeCount () const
 
const UT_ColorNodegetNode (int i) const
 
UT_ColorNodegetRamp ()
 
const UT_ColorNodegetRamp () const
 
void convertToRaster (UT_Raster *raster, UT_RampOrient dir, bool do_interp=true, fpreal cx=0.0f, fpreal cy=0.0f, fpreal phase=0.0f, fpreal radius=1.0f)
 
const UT_ColorNodegetClosestNode (fpreal pos) const
 
int getClosestNodeIndex (fpreal pos) const
 
const UT_ColorNodegetClosestNode (fpreal pos, fpreal val) const
 
int getClosestNodeIndex (fpreal pos, fpreal val) const
 
const UT_ColorNodegetCurrentNode () const
 
int getCurrentNodeIndex () const
 
void setCurrentNodeIndex (int i, bool add_to_selection)
 
void getColor (fpreal pos, UT_FRGBA *clr, bool do_interp=true) const
 
void getColor (fpreal pos, float fvals[4], bool do_interp=true) const
 
void getColor (UT_FRGBA *values, int num, bool do_interp=true) const
 
void setColorAt (int i, float fvals[4])
 
void setColorAt (int i, const UT_FRGBA &clr)
 
void setCurrentNodeColor (fpreal32 fvals[4])
 
void setCurrentNodeColor (fpreal64 fvals[4])
 
void setCurrentNodeColor (const UT_FRGBA &clr)
 
void setCurrentNodeBasis (UT_SPLINE_BASIS basis)
 
void setNodeBasis (int i, UT_SPLINE_BASIS basis)
 
void setEnable (int i, bool enable_pos, bool enable_val, bool enable_interp)
 
bool getEnablePos (int i) const
 
bool getEnableVal (int i) const
 
bool getEnableInterp (int i) const
 
bool getStrictOrder () const
 
void setStrictOrder (bool strict)
 
void clearSelection ()
 
bool isNodeSelected (int i) const
 
void selectNode (int i, bool add)
 
void selectRange (int first_i, int last_i, bool add)
 
void deselectNode (int i)
 
void toggleSelectNode (int i)
 
void getSelectionIndices (UT_IntArray &indices)
 
void setSelectionIndices (const UT_IntArray &indices)
 
int addNode (fpreal pos)
 Returns the index of the inserted node. More...
 
int addNode (fpreal pos, fpreal32 fvals[4], UT_SPLINE_BASIS basis=UT_SPLINE_LINEAR, bool current=true)
 
int addNode (fpreal pos, fpreal64 fvals[4], UT_SPLINE_BASIS basis=UT_SPLINE_LINEAR, bool current=true)
 
int addNode (fpreal pos, const UT_FRGBA &color, UT_SPLINE_BASIS basis=UT_SPLINE_LINEAR, bool current=true)
 
int insertNode (int i, fpreal pos, fpreal32 fvals[4], UT_SPLINE_BASIS basis=UT_SPLINE_LINEAR, bool current=true)
 
int insertNode (int i, fpreal pos, fpreal64 fvals[4], UT_SPLINE_BASIS basis=UT_SPLINE_LINEAR, bool current=true)
 
void reorderNodes ()
 
void recordNodePositions ()
 
bool deleteNode (fpreal pos)
 
bool deleteNodeAt (int i)
 
void deleteSelectedNodes ()
 
bool isNodeHandle (int i) const
 
bool isNodeLeftHandle (int i) const
 
bool isNodeRightHandle (int i) const
 
void moveNode (int i, fpreal pos)
 
void moveNode (const UT_ColorNode *node, fpreal pos)
 
fpreal solveSpline (fpreal pos) const
 
int load (const char *pathname)
 
bool load (UT_IStream &is)
 
bool load (UT_JSONParser &p)
 
int save (const char *pathname) const
 
int save (std::ostream &os) const
 
UT_Rampoperator= (const UT_Ramp &from)
 
bool operator== (const UT_Ramp &from) const
 
bool operator!= (const UT_Ramp &from) const
 
SYS_HashType hash () const
 
void setRamp (const UT_ColorNode *r, int size)
 
void rampLookup (fpreal pos, float values[4], int order=0) const
 
void rampLookupNoInterp (fpreal pos, float values[4]) const
 
void rampLookup (fpreal u0, fpreal u1, float values[4], int ns, int order=0) const
 
void rampLookupNoInterp (fpreal u0, fpreal u1, float values[4], int ns) const
 
template<typename ARCHIVER_T >
bool serialize (ARCHIVER_T &archiver)
 
bool resolveOpRamp (const char *op_path, const char *ramp_parm, bool *is_rgb=nullptr, int *op_id=nullptr, int *op_version=nullptr)
 

Additional Inherited Members

- Static Public Member Functions inherited from UT_Ramp
static UT_SharedPtr< UT_RampbuildFromDefault (const char *def)
 Returns a ramp constructed from the canonical default strings. More...
 
static void setRampOpResolver (UT_RampOpResolver *resolver)
 
static int registerRamp (UT_SharedPtr< UT_Ramp > ramp, UT_IntArray &registered)
 
static void unregisterRamps (UT_IntArray &registered)
 
static UT_SharedPtr< UT_RamplookupRamp (int handle)
 Look up a registered layer by handle. More...
 

Detailed Description

Definition at line 80 of file APEX_Include.h.

Constructor & Destructor Documentation

apex::ColorRamp::ColorRamp ( )
inline

Definition at line 83 of file APEX_Include.h.

apex::ColorRamp::ColorRamp ( const UT_Ramp ramp)
inline

Definition at line 88 of file APEX_Include.h.


The documentation for this class was generated from the following file: