11 #ifndef TIL_SEQUENCE_H
12 #define TIL_SEQUENCE_H
25 #define SEQUENCE_NEAREST 0
26 #define SEQUENCE_PREVIOUS 1
27 #define SEQUENCE_NEXT 2
37 UT_SMALLOBJECT_CLEANPAGES_OFF, 196,
38 UT_SMALLOBJECT_THREADSAFE_ON>
47 int64 getMemoryUsage(
bool inclusive)
const;
50 bool isValid()
const {
return myValidFlag; }
51 void setValid(
bool valid) { myValidFlag = valid; }
59 bool metdata_tool =
true)
const;
69 bool mark_unscoped =
false)
const;
87 double getEnd()
const {
return myStart+myLength-1; }
91 {
return (myStart + myLength -2) / myRate; }
96 { x = myXRes; y = myYRes; }
100 void setRes(
int x,
int y);
103 { myAspect = (aspect > 0.0f) ? aspect : 1.0
f; }
109 {
return myRenderTime; }
111 { myRenderTime =
t; }
113 {
return myRenderMemory; }
115 { myRenderMemory = mem; }
118 { b = myPreExtend; a = myPostExtend; }
120 { before = myPreHold; after = myPostHold; }
123 { myPreExtend = before; myPostExtend = after; }
125 { myPreHold = before; myPostHold = after; }
130 exint getImageIndex(
double t,
int clamp_range = 1,
132 double getImageTime(
double t,
int clamp_range =1,
136 exint getFrameIndex(
double t,
int clamp_range = 1,
138 double getFrameTime(
double t,
int clamp_range =1,
142 double getIndexTime(
exint image_index)
const;
144 exint checkIndexBounds(
exint image_index)
const;
161 void removePlane(
int index);
162 void removePlane(
const char *
name);
164 void clearAllPlanes();
173 TIL_Plane * getPlaneWithElement(
const char *elem_name);
174 const TIL_Plane * getPlaneWithElement(
const char *elem_name)
const;
176 int getPlaneByName(
const char *
name)
const;
183 void print(std::ostream &os)
const;
187 void bumpColorAlphaToFront();
197 myHandleBoundsLB = bl;
198 myHandleBoundsRT = tr;
202 return myHandleBoundsLB;
206 return myHandleBoundsRT;
213 unsigned myValidFlag :1,
245 int64 myRenderMemory;
void setRenderMemory(int64 mem)
TIL_Dominance getFieldDominance() const
void setFrameRate(double rate)
void setTemporalExtend(TIL_Extend before, TIL_Extend after)
void setStart(double start)
void setSingleImage(bool on)
void setTemporalHold(int before, int after)
const UT_Vector2D & handleBoundsLB() const
GLboolean GLboolean GLboolean GLboolean a
void getRes(int &x, int &y) const
Class which writes ASCII or binary JSON streams.
bool isSingleImage() const
double getStartTime() const
const UT_Options & metaData() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
fpreal getRenderTime() const
TIL_Interlace getInterlace() const
double getFrameRate() const
GLint GLint GLsizei GLint GLenum format
double getEndTime() const
void getTemporalExtend(TIL_Extend &b, TIL_Extend &a) const
float getAspectRatio() const
GLuint const GLchar * name
GLboolean GLboolean GLboolean b
A map of string to various well defined value types.
const UT_Vector2D & handleBoundsRT() const
LeafData & operator=(const LeafData &)=delete
void setAspectRatio(float aspect)
int64 getRenderMemory() const
Contains the details of a specific image file, used by IMG_File. This class contains all the high-lev...
void setValid(bool valid)
GLubyte GLubyte GLubyte GLubyte w
void getTemporalHold(int &before, int &after) const
FMT_INLINE void print(format_string< T...> fmt, T &&...args)
void setRenderTime(fpreal t)
float getVAspectRatio() const
void setHandleBounds(const UT_Vector2D &bl, const UT_Vector2D &tr)