#include <Params.h>
Public Member Functions | |
InterfaceGl () | |
InterfaceGl (const std::string &title, const Vec2i &size, const ColorA=ColorA(0.3f, 0.3f, 0.3f, 0.4f)) | |
void | show (bool visible=true) |
void | hide () |
bool | isVisible () const |
void | addParam (const std::string &name, bool *boolParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, float *floatParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, double *doubleParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, int32_t *intParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, Vec3f *vectorParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, Quatf *quatParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, Color *quatParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, ColorA *quatParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, std::string *strParam, const std::string &optionsStr="", bool readOnly=false) |
void | addParam (const std::string &name, const std::vector< std::string > &enumNames, int *param, const std::string &optionsStr="", bool readOnly=false) |
Adds enumerated parameter. The value corresponds to the indices of enumNames. | |
void | addSeparator (const std::string &name="", const std::string &optionsStr="") |
void | addText (const std::string &name="", const std::string &optionsStr="") |
void | addButton (const std::string &name, const std::function< void()> &callback, const std::string &optionsStr="") |
void | removeParam (const std::string &name) |
void | setOptions (const std::string &name="", const std::string &optionsStr="") |
Static Public Member Functions | |
static void | draw () |
Protected Member Functions | |
void | implAddParam (const std::string &name, void *param, int type, const std::string &optionsStr, bool readOnly) |
Protected Attributes | |
std::shared_ptr< TwBar > | mBar |
std::vector< std::shared_ptr < std::function< void()> > > | mButtonCallbacks |
cinder::params::InterfaceGl::InterfaceGl | ( | const std::string & | title, |
const Vec2i & | size, | ||
const ColorA | color = ColorA( 0.3f, 0.3f, 0.3f, 0.4f ) |
||
) |
void cinder::params::InterfaceGl::draw | ( | ) | [static] |
void cinder::params::InterfaceGl::show | ( | bool | visible = true | ) |
void cinder::params::InterfaceGl::hide | ( | ) |
bool cinder::params::InterfaceGl::isVisible | ( | ) | const |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
bool * | boolParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
float * | floatParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
double * | doubleParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
int32_t * | intParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
Vec3f * | vectorParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
Quatf * | quatParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
Color * | quatParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
ColorA * | quatParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
std::string * | strParam, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
void cinder::params::InterfaceGl::addParam | ( | const std::string & | name, |
const std::vector< std::string > & | enumNames, | ||
int * | param, | ||
const std::string & | optionsStr = "" , |
||
bool | readOnly = false |
||
) |
Adds enumerated parameter. The value corresponds to the indices of enumNames.
void cinder::params::InterfaceGl::addSeparator | ( | const std::string & | name = "" , |
const std::string & | optionsStr = "" |
||
) |
void cinder::params::InterfaceGl::addText | ( | const std::string & | name = "" , |
const std::string & | optionsStr = "" |
||
) |
void cinder::params::InterfaceGl::addButton | ( | const std::string & | name, |
const std::function< void()> & | callback, | ||
const std::string & | optionsStr = "" |
||
) |
void cinder::params::InterfaceGl::removeParam | ( | const std::string & | name | ) |
void cinder::params::InterfaceGl::setOptions | ( | const std::string & | name = "" , |
const std::string & | optionsStr = "" |
||
) |
void cinder::params::InterfaceGl::implAddParam | ( | const std::string & | name, |
void * | param, | ||
int | type, | ||
const std::string & | optionsStr, | ||
bool | readOnly | ||
) | [protected] |
std::shared_ptr<TwBar> cinder::params::InterfaceGl::mBar [protected] |
std::vector<std::shared_ptr<std::function<void()> > > cinder::params::InterfaceGl::mButtonCallbacks [protected] |