11 #ifndef TIL_SEQUENCE_H
12 #define TIL_SEQUENCE_H
26 #define SEQUENCE_NEAREST 0
27 #define SEQUENCE_PREVIOUS 1
28 #define SEQUENCE_NEXT 2
47 {
return v * imageToPixelScale + imageToPixelTranslate; }
50 {
return (v - imageToPixelTranslate) / imageToPixelScale; }
55 UT_SMALLOBJECT_CLEANPAGES_OFF, 196,
56 UT_SMALLOBJECT_THREADSAFE_ON>
65 int64 getMemoryUsage(
bool inclusive)
const;
68 bool isValid()
const {
return myValidFlag; }
69 void setValid(
bool valid) { myValidFlag = valid; }
77 bool metdata_tool =
true)
const;
87 bool mark_unscoped =
false)
const;
105 double getEnd()
const {
return myStart+myLength-1; }
109 {
return (myStart + myLength -2) / myRate; }
114 { x = myXRes; y = myYRes; }
118 void setRes(
int x,
int y);
121 { myAspect = (aspect > 0.0f) ? aspect : 1.0
f; }
127 {
return myRenderTime; }
129 { myRenderTime =
t; }
131 {
return myRenderMemory; }
133 { myRenderMemory = mem; }
136 { b = myPreExtend; a = myPostExtend; }
138 { before = myPreHold; after = myPostHold; }
141 { myPreExtend = before; myPostExtend = after; }
143 { myPreHold = before; myPostHold = after; }
148 exint getImageIndex(
double t,
int clamp_range = 1,
150 double getImageTime(
double t,
int clamp_range =1,
154 exint getFrameIndex(
double t,
int clamp_range = 1,
156 double getFrameTime(
double t,
int clamp_range =1,
160 double getIndexTime(
exint image_index)
const;
162 exint checkIndexBounds(
exint image_index)
const;
179 void removePlane(
int index);
180 void removePlane(
const char *
name);
182 void clearAllPlanes();
191 TIL_Plane * getPlaneWithElement(
const char *elem_name);
192 const TIL_Plane * getPlaneWithElement(
const char *elem_name)
const;
194 int getPlaneByName(
const char *
name)
const;
201 void print(std::ostream &os)
const;
205 void bumpColorAlphaToFront();
215 myHandleBoundsLB = bl;
216 myHandleBoundsRT = tr;
220 return myHandleBoundsLB;
224 return myHandleBoundsRT;
229 myImageSpaceData = imageSpaceData;
234 return myImageSpaceData;
240 unsigned myValidFlag :1,
275 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
UT_Vector2D imageToPixelTranslate
void getRes(int &x, int &y) const
Class which writes ASCII or binary JSON streams.
bool isSingleImage() const
UT_Vector2D imageToPixel(const UT_Vector2D &v) const
UT_Vector2D pixelToImage(const UT_Vector2D &v) 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
const TIL_SequenceImageSpaceData & getImageSpaceData() 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 setImageSpaceData(const TIL_SequenceImageSpaceData &imageSpaceData)
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)