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

#include <COP2_ImageSource.h>

+ Inheritance diagram for COP2_ImageSource:

Public Member Functions

 COP2_ImageSource (COP2_Node *)
 
fpreal getGlobalTime () override
 
fpreal getSampleRate () override
 
fpreal getStartTime () override
 
fpreal getEndTime () override
 
const char * getName () override
 
void getFrameName (int frame, UT_String &name) override
 
void getFullName (UT_String &name) override
 
int doesImageExist (int frame, bool adjust=true) override
 
int equals (const TIL_ImageSource *) override
 
int open (short &key, int reset=0, fpreal t=TIL_GLOBAL_TIME) override
 
void close (short key) override
 
bool isNetwork () override
 
bool isConstantSequence () const override
 
const TIL_SequencegetSequence (fpreal t) override
 
int getID () const override
 
UT_TokenStringgetID (fpreal t, int xres, int yres, const TIL_Plane &plane, int array_index) override
 
void getImageBounds (const TIL_Plane &plane, int array_index, fpreal t, int xres, int yres, int &x1, int &y1, int &x2, int &y2) override
 
void getCookRegions (TIL_CookRegionList &regions) override
 
int getImage (TIL_Raster *image, fpreal t, int xres, int yres, const TIL_Plane &plane, int array_index, int xstart, int ystart, int xend, int yend, float gamma, bool include_alpha=false, bool is_interactive=false, int fxres=0, int fyres=0) override
 
void getInfo (UT_WorkBuffer &infotext) override
 
int writeImage (const char *filename, const IMG_TileOptions *finfo, const TIL_Sequence *, int step=1, const char *uselut=0, float gamma=1.0F, void(*info)(void *, const char *)=0, void *data=0, bool suppress_summary_dialog=false, bool adjust_color_space=true, bool overwrite=false) override
 
int writeImage (const char *filename, const IMG_TileOptions *finfo, int xres, int yres, const char *color, const char *alpha, int start, int end, int step=1, const char *uselut=0, float gamma=1.0F, void(*info)(void *, const char *)=0, void *data=0, bool suppress_summary_dialog=false, bool adjust_color_space=true, bool overwrite=false) override
 
size_t getVersion () override
 
int isFrameLocked (fpreal t) override
 
int isAnythingLocked () override
 
int isPlaneLocked (const TIL_Plane *, fpreal t) override
 
const TIL_PlanegetPreviewPlane (int index) override
 
virtual int canModifyImage ()
 
virtual int useHandles ()
 
COP2_NodegetCop () const
 
COP2_NodegetCop ()
 
bool isSlowOperation () const override
 
fpreal getFrameTime (fpreal t, bool shift_only=false, const TIL_Sequence *ref=0) override
 
int getFrameShift (int fr, bool shift_only=false, const TIL_Sequence *ref=0) override
 
bool getColorCurves (const char *planename, int array, fpreal t, TIL_ColorCurves &curves, UT_String &first, bool allnodes, int comp=-1, bool natural_range=true, float start=0.0f, float end=1.0f, int evalpoints=0) override
 
bool allowUserSelection () const override
 
TIL_ImageSourceselectParentSource (int px, int py, const char *planename, int array_index) override
 
bool getPreferredViewingPlane (UT_WorkBuffer &buf) const override
 
int64 getMemoryUsage (bool inclusive) const override
 
- Public Member Functions inherited from TIL_ImageSource
 TIL_ImageSource ()
 
void bumpRefCount (int i)
 
void invalidate ()
 
bool isValid () const
 
int getImageIndexFromTime (fpreal t)
 
int getFrameFromTime (fpreal t)
 
virtual int getActualFrame (int frame)
 
virtual void removeFrame (int)
 
virtual void addFrame (int)
 
virtual void removeSequence ()
 
virtual bool canAddFrame ()
 
virtual int getApparentFrame (int fr)
 
virtual bool getPriorityCircle (float &centrex, float &centrey, float &radius) const
 
virtual void getComment (UT_String &comment, fpreal t)
 
virtual void setComment (const UT_String &comment, fpreal t)
 
virtual void writeImageComplete (int successcount, int failcount, const UT_String &failedfiles)
 
virtual bool isCachingNeeded (int) const
 
virtual void setMouseLocation (int mx, int my, float radius=64.0f)
 
virtual void bumpVersion (bool)
 
virtual bool hasPixelScript (int slot) const
 
virtual bool runPixelScript (int px, int py, int slot)
 
virtual bool isStereoscopicSource (fpreal t) const
 
virtual int getLeftPlaneIndex (fpreal t) const
 
virtual const char * getLeftPlaneName (fpreal t) const
 
virtual int getRightPlaneIndex (fpreal t) const
 
virtual const char * getRightPlaneName (fpreal t) const
 
virtual fpreal getRenderTime (int frame) const
 
virtual int64 getPeakMemUsage (int frame) const
 
virtual bool getStyleSheetJSON (int x, int y, UT_StringHolder &str)
 
virtual STY_StyleSheetgetStyleSheet (int x, int y)
 
virtual OP_NodegetMaterialNode (int x, int y)
 
virtual void onAutoUpdate ()
 

Protected Member Functions

 ~COP2_ImageSource () override
 
- Protected Member Functions inherited from TIL_ImageSource
virtual ~TIL_ImageSource ()
 

Detailed Description

Definition at line 18 of file COP2_ImageSource.h.

Constructor & Destructor Documentation

COP2_ImageSource::COP2_ImageSource ( COP2_Node )
COP2_ImageSource::~COP2_ImageSource ( )
overrideprotected

Member Function Documentation

bool COP2_ImageSource::allowUserSelection ( ) const
inlineoverridevirtual

Reimplemented from TIL_ImageSource.

Definition at line 140 of file COP2_ImageSource.h.

virtual int COP2_ImageSource::canModifyImage ( )
inlinevirtual

Definition at line 114 of file COP2_ImageSource.h.

void COP2_ImageSource::close ( short  key)
overridevirtual

Reimplemented from TIL_ImageSource.

int COP2_ImageSource::doesImageExist ( int  frame,
bool  adjust = true 
)
overridevirtual

Reimplemented from TIL_ImageSource.

int COP2_ImageSource::equals ( const TIL_ImageSource )
overridevirtual

Implements TIL_ImageSource.

bool COP2_ImageSource::getColorCurves ( const char *  planename,
int  array,
fpreal  t,
TIL_ColorCurves curves,
UT_String first,
bool  allnodes,
int  comp = -1,
bool  natural_range = true,
float  start = 0.0f,
float  end = 1.0f,
int  evalpoints = 0 
)
overridevirtual

Reimplemented from TIL_ImageSource.

void COP2_ImageSource::getCookRegions ( TIL_CookRegionList regions)
inlineoverridevirtual

Implements TIL_ImageSource.

Definition at line 63 of file COP2_ImageSource.h.

COP2_Node* COP2_ImageSource::getCop ( ) const
inline

Definition at line 117 of file COP2_ImageSource.h.

COP2_Node* COP2_ImageSource::getCop ( )
inline

Definition at line 118 of file COP2_ImageSource.h.

fpreal COP2_ImageSource::getEndTime ( )
overridevirtual

Implements TIL_ImageSource.

void COP2_ImageSource::getFrameName ( int  frame,
UT_String name 
)
overridevirtual

Reimplemented from TIL_ImageSource.

int COP2_ImageSource::getFrameShift ( int  fr,
bool  shift_only = false,
const TIL_Sequence ref = 0 
)
overridevirtual

Reimplemented from TIL_ImageSource.

fpreal COP2_ImageSource::getFrameTime ( fpreal  t,
bool  shift_only = false,
const TIL_Sequence ref = 0 
)
overridevirtual

Reimplemented from TIL_ImageSource.

void COP2_ImageSource::getFullName ( UT_String name)
overridevirtual

Implements TIL_ImageSource.

fpreal COP2_ImageSource::getGlobalTime ( )
overridevirtual

Implements TIL_ImageSource.

int COP2_ImageSource::getID ( ) const
inlineoverridevirtual

Implements TIL_ImageSource.

Definition at line 52 of file COP2_ImageSource.h.

UT_TokenString* COP2_ImageSource::getID ( fpreal  t,
int  xres,
int  yres,
const TIL_Plane plane,
int  array_index 
)
overridevirtual

Implements TIL_ImageSource.

int COP2_ImageSource::getImage ( TIL_Raster image,
fpreal  t,
int  xres,
int  yres,
const TIL_Plane plane,
int  array_index,
int  xstart,
int  ystart,
int  xend,
int  yend,
float  gamma,
bool  include_alpha = false,
bool  is_interactive = false,
int  fxres = 0,
int  fyres = 0 
)
overridevirtual

Implements TIL_ImageSource.

void COP2_ImageSource::getImageBounds ( const TIL_Plane plane,
int  array_index,
fpreal  t,
int  xres,
int  yres,
int x1,
int y1,
int x2,
int y2 
)
overridevirtual

Reimplemented from TIL_ImageSource.

void COP2_ImageSource::getInfo ( UT_WorkBuffer infotext)
overridevirtual

Reimplemented from TIL_ImageSource.

int64 COP2_ImageSource::getMemoryUsage ( bool  inclusive) const
overridevirtual

Implements TIL_ImageSource.

const char* COP2_ImageSource::getName ( )
overridevirtual

Implements TIL_ImageSource.

bool COP2_ImageSource::getPreferredViewingPlane ( UT_WorkBuffer buf) const
overridevirtual

Reimplemented from TIL_ImageSource.

const TIL_Plane* COP2_ImageSource::getPreviewPlane ( int  index)
overridevirtual

Reimplemented from TIL_ImageSource.

fpreal COP2_ImageSource::getSampleRate ( )
overridevirtual

Implements TIL_ImageSource.

const TIL_Sequence* COP2_ImageSource::getSequence ( fpreal  t)
overridevirtual

Implements TIL_ImageSource.

fpreal COP2_ImageSource::getStartTime ( )
overridevirtual

Implements TIL_ImageSource.

size_t COP2_ImageSource::getVersion ( )
overridevirtual

Reimplemented from TIL_ImageSource.

int COP2_ImageSource::isAnythingLocked ( )
overridevirtual

Reimplemented from TIL_ImageSource.

bool COP2_ImageSource::isConstantSequence ( ) const
inlineoverridevirtual

Reimplemented from TIL_ImageSource.

Definition at line 48 of file COP2_ImageSource.h.

int COP2_ImageSource::isFrameLocked ( fpreal  t)
overridevirtual

Reimplemented from TIL_ImageSource.

bool COP2_ImageSource::isNetwork ( )
overridevirtual

Reimplemented from TIL_ImageSource.

int COP2_ImageSource::isPlaneLocked ( const TIL_Plane ,
fpreal  t 
)
overridevirtual

Reimplemented from TIL_ImageSource.

bool COP2_ImageSource::isSlowOperation ( ) const
inlineoverridevirtual

Reimplemented from TIL_ImageSource.

Definition at line 120 of file COP2_ImageSource.h.

int COP2_ImageSource::open ( short &  key,
int  reset = 0,
fpreal  t = TIL_GLOBAL_TIME 
)
overridevirtual

Reimplemented from TIL_ImageSource.

TIL_ImageSource* COP2_ImageSource::selectParentSource ( int  px,
int  py,
const char *  planename,
int  array_index 
)
overridevirtual

Reimplemented from TIL_ImageSource.

virtual int COP2_ImageSource::useHandles ( )
inlinevirtual

Definition at line 115 of file COP2_ImageSource.h.

int COP2_ImageSource::writeImage ( const char *  filename,
const IMG_TileOptions finfo,
const TIL_Sequence ,
int  step = 1,
const char *  uselut = 0,
float  gamma = 1.0F,
void(*)(void *, const char *)  info = 0,
void data = 0,
bool  suppress_summary_dialog = false,
bool  adjust_color_space = true,
bool  overwrite = false 
)
overridevirtual

Reimplemented from TIL_ImageSource.

int COP2_ImageSource::writeImage ( const char *  filename,
const IMG_TileOptions finfo,
int  xres,
int  yres,
const char *  color,
const char *  alpha,
int  start,
int  end,
int  step = 1,
const char *  uselut = 0,
float  gamma = 1.0F,
void(*)(void *, const char *)  info = 0,
void data = 0,
bool  suppress_summary_dialog = false,
bool  adjust_color_space = true,
bool  overwrite = false 
)
overridevirtual

Reimplemented from TIL_ImageSource.


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