Blender V4.3
blender::SubFrame Struct Reference

#include <BLI_sub_frame.hh>

Public Member Functions

 SubFrame (const int frame=0, float subframe=0.0f)
 
 SubFrame (const float frame)
 
int frame () const
 
float subframe () const
 
 operator float () const
 
 operator double () const
 
uint64_t hash () const
 

Static Public Member Functions

static SubFrame min ()
 
static SubFrame max ()
 

Friends

bool operator< (const SubFrame &a, const SubFrame &b)
 
bool operator<= (const SubFrame &a, const SubFrame &b)
 
bool operator> (const SubFrame &a, const SubFrame &b)
 
bool operator>= (const SubFrame &a, const SubFrame &b)
 

Detailed Description

Contains an integer frame number and a subframe float in the range [0, 1).

Definition at line 19 of file BLI_sub_frame.hh.

Constructor & Destructor Documentation

◆ SubFrame() [1/2]

blender::SubFrame::SubFrame ( const int frame = 0,
float subframe = 0.0f )
inline

Definition at line 25 of file BLI_sub_frame.hh.

References BLI_assert, and subframe().

◆ SubFrame() [2/2]

blender::SubFrame::SubFrame ( const float frame)
inline

Definition at line 31 of file BLI_sub_frame.hh.

Member Function Documentation

◆ frame()

int blender::SubFrame::frame ( ) const
inline

Definition at line 33 of file BLI_sub_frame.hh.

◆ hash()

uint64_t blender::SubFrame::hash ( ) const
inline

Definition at line 63 of file BLI_sub_frame.hh.

References blender::get_default_hash().

◆ max()

static SubFrame blender::SubFrame::max ( )
inlinestatic

Definition at line 58 of file BLI_sub_frame.hh.

References INT32_MAX.

◆ min()

static SubFrame blender::SubFrame::min ( )
inlinestatic

Definition at line 53 of file BLI_sub_frame.hh.

References INT32_MIN.

◆ operator double()

blender::SubFrame::operator double ( ) const
inlineexplicit

Definition at line 48 of file BLI_sub_frame.hh.

References double().

◆ operator float()

blender::SubFrame::operator float ( ) const
inlineexplicit

Definition at line 43 of file BLI_sub_frame.hh.

References float.

◆ subframe()

float blender::SubFrame::subframe ( ) const
inline

Definition at line 38 of file BLI_sub_frame.hh.

Referenced by SubFrame().

Friends And Related Symbol Documentation

◆ operator<

bool operator< ( const SubFrame & a,
const SubFrame & b )
friend

Definition at line 70 of file BLI_sub_frame.hh.

◆ operator<=

bool operator<= ( const SubFrame & a,
const SubFrame & b )
friend

Definition at line 75 of file BLI_sub_frame.hh.

◆ operator>

bool operator> ( const SubFrame & a,
const SubFrame & b )
friend

Definition at line 80 of file BLI_sub_frame.hh.

◆ operator>=

bool operator>= ( const SubFrame & a,
const SubFrame & b )
friend

Definition at line 85 of file BLI_sub_frame.hh.


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