#include <CSlider.h>
List of all members.
Member Enumeration Documentation
Enum of valid scales
- Enumerator:
linear |
|
logarithmic |
|
undefinedScale |
|
Enum of valid quantitye units
- Enumerator:
Float |
|
UnsignedFloat |
|
Integer |
|
UnsignedInteger |
|
Undefined |
|
Constructor & Destructor Documentation
CSlider::CSlider |
( |
const std::string & |
name = "Slider" , |
|
|
const CCopasiContainer * |
pParent = NULL |
|
) |
| |
Default constructor
- Parameters:
-
const | std::string & name (default: "NoName") |
const | CCopasiContainer * pParent (default: NULL) |
Copy constructor
- Parameters:
-
Member Function Documentation
Compile, i.e., find the objects pointed to by the CN.
- Parameters:
-
- Returns:
- bool success
CSlider::Scale CSlider::convertScaleNameToScale |
( |
const char * |
scaleName | ) |
|
Converts the scaling name to the corresponding enum.
- Returns:
- CSlider::Scale
const char * CSlider::convertScaleToScaleName |
( |
Scale |
scale | ) |
|
Converts the scaling name to the corresponding enum.
- Returns:
- const char* scaleName
const std::string & CSlider::getAssociatedEntityKey |
( |
| ) |
const |
Retrieve the key of the associated entity.
- Returns:
- const std::string & associatedEntityKey
const std::string & CSlider::getKey |
( |
| ) |
const [virtual] |
Retrieve the key
- Returns:
- const std::string & key
Reimplemented from CCopasiObject.
const C_FLOAT64 & CSlider::getMaxValue |
( |
| ) |
const |
Retrieve the slider maximum value.
- Returns:
- const C_FLOAT64 & maxValue
const C_FLOAT64 & CSlider::getMinValue |
( |
| ) |
const |
Retrieve the slider minimum value.
- Returns:
- const C_FLOAT64 minValue
const C_FLOAT64 & CSlider::getOriginalValue |
( |
| ) |
const |
Retrieve the original slider Value.
- Returns:
- const C_FLOAT64 Value
Retrieve the scaling of the slider.
- Returns:
- Scale scaling
const std::string & CSlider::getSliderObjectCN |
( |
| ) |
const |
Retrieve the slider object CN.
- Returns:
- const std::string & sliderObjectCN
const C_FLOAT64 & CSlider::getSliderValue |
( |
| ) |
const |
Retrieve the slider Value.
- Returns:
- const C_FLOAT64 Value
bool CSlider::getSynced |
( |
| ) |
const |
Returns wether the value is to be kept in sync the the objects value.
- Returns:
- bool isSynced.
unsigned C_INT32 CSlider::getTickFactor |
( |
| ) |
const |
Retrieve the tick factor.
- Returns:
- const unsigned C_INT32 & tickFactor
unsigned C_INT32 CSlider::getTickNumber |
( |
| ) |
const |
Retrieve the tick number.
- Returns:
- const unsigned C_INT32 & tickNumber
void CSlider::resetRange |
( |
| ) |
|
Reset the minimum and maximum value to defaults. For the minimum this is half the current value. For the maximum this is twice the current value.
void CSlider::resetValue |
( |
| ) |
|
Sets the value of the slider back to it's original value.
bool CSlider::setAssociatedEntityKey |
( |
const std::string & |
associatedEntityKey | ) |
|
Set the key of the associated entity
- Parameters:
-
const | std::string & associatedEntityKey |
- Returns:
- bool succes
bool CSlider::setMaxValue |
( |
const C_FLOAT64 |
maxValue | ) |
|
Set the slider maximum value.
- Parameters:
-
- Returns:
- bool succes
bool CSlider::setMinValue |
( |
const C_FLOAT64 |
minValue | ) |
|
Set the slider minimum value.
- Parameters:
-
- Returns:
- bool succes
bool CSlider::setOriginalValue |
( |
const C_FLOAT64 |
value | ) |
|
Set the sliders original value.
- Parameters:
-
const | C_FLOAT64 Value |
const | bool & writeToObject (Default: true) |
- Returns:
- bool succes
Set the slider object.
- Parameters:
-
- Returns:
- bool succes
Set the slider object.
- Parameters:
-
- Returns:
- bool succes
Set the slider type.
- Parameters:
-
- Returns:
- bool succes
bool CSlider::setSliderValue |
( |
const C_FLOAT64 |
value, |
|
|
const bool & |
writeToObject = true |
|
) |
| |
Set the slider value.
- Parameters:
-
const | C_FLOAT64 Value |
const | bool & writeToObject (Default: true) |
- Returns:
- bool succes
void CSlider::setSynced |
( |
bool |
synced | ) |
|
Sets wether the value is to be kept in sync the the objects value.
bool CSlider::setTickFactor |
( |
const unsigned C_INT32 |
tickFactor | ) |
|
Set the tick factor.
- Parameters:
-
const | unsigned C_INT32 & tickFactor |
- Returns:
- bool succes
bool CSlider::setTickNumber |
( |
const unsigned C_INT32 |
tickNumber | ) |
|
Set the tick number.
- Parameters:
-
const | unsigned C_INT32 & tickNumber |
- Returns:
- bool succes
Set the CSliders value to the value of the underlying object.
void CSlider::writeToObject |
( |
| ) |
|
Set the objects value to the value stored in CSlider.
Member Data Documentation
Initial value:
{"linear", "logarithmic", "undefined", NULL}
String representation of valid scalings
Initial value:
{"float", "unsignedFloat", "integer", "unsignedInteger", "Undefined", NULL}
String representation of valid quantity units
The documentation for this class was generated from the following files: