25 {
"float",
"unsignedFloat",
"integer",
"unsignedInteger",
"Undefined", NULL};
28 {
"linear",
"logarithmic",
"undefined", NULL};
34 mAssociatedEntityKey(),
52 mAssociatedEntityKey(src.mAssociatedEntityKey),
53 mpSliderObject(src.mpSliderObject),
54 mSliderType(src.mSliderType),
56 mMinValue(src.mMinValue),
57 mMaxValue(src.mMaxValue),
58 mTickNumber(src.mTickNumber),
59 mTickFactor(src.mTickFactor),
61 mScaling(src.mScaling),
63 mInitialRefreshes(src.mInitialRefreshes)
116 std::set< const CCopasiObject * > ChangedObjects;
117 ChangedObjects.insert(pObject);
120 assert(pDataModel != NULL);
165 this->
mMaxValue = value == 0 ? 1.0 : value * 2.0;
216 const bool & writeToObject)
232 if (this->
mSync && writeToObject)
279 for (; it != end; ++it)
382 if (!strncmp(
"linear", scaleName, 7))
386 else if (!strncmp(
"logarithmic", scaleName, 12))
415 assert(pModel != NULL);
416 std::vector<CCopasiContainer*> listOfContainers;
417 listOfContainers.push_back(const_cast<CModel*>(pModel));
CCopasiDataModel * getObjectDataModel()
bool compile(const std::vector< CCopasiContainer * > &listOfContainer=CCopasiContainer::EmptyList)
bool remove(const std::string &key)
const char * convertScaleToScaleName(Scale scale)
bool setScaling(Scale scaling)
void setObjectValue(const C_FLOAT64 &value)
virtual CCopasiObjectName getCN() const
unsigned C_INT32 mTickNumber
CSlider(const std::string &name="Slider", const CCopasiContainer *pParent=NULL)
bool setSliderObject(CCopasiObject *pObject)
bool setOriginalValue(const C_FLOAT64 value)
bool setMaxValue(const C_FLOAT64 maxValue)
qreal linear(qreal a, qreal b, qreal t)
const std::string & getSliderObjectCN() const
const std::string & getAssociatedEntityKey() const
const std::string & getKey() const
void setSynced(bool synced)
CSlider::Type getSliderType() const
bool setTickFactor(const unsigned C_INT32 tickFactor)
static const char * TypeName[]
std::string mAssociatedEntityKey
bool setAssociatedEntityKey(const std::string &associatedEntityKey)
bool setSliderType(const CSlider::Type type)
static const char * ScaleName[]
const C_FLOAT64 & getSliderValue() const
std::vector< Refresh * > mInitialRefreshes
const C_FLOAT64 & getOriginalValue() const
const C_FLOAT64 & getMaxValue() const
bool setTickNumber(const unsigned C_INT32 tickNumber)
static CKeyFactory * getKeyFactory()
bool setMinValue(const C_FLOAT64 minValue)
unsigned C_INT32 mTickFactor
virtual void * getValuePointer() const
unsigned C_INT32 getTickNumber() const
std::vector< Refresh * > buildInitialRefreshSequence(std::set< const CCopasiObject * > &changedObjects)
CCopasiObject * mpSliderObject
CCopasiObject * ObjectFromName(const std::vector< CCopasiContainer * > &listOfContainer, const CCopasiObjectName &CN) const
const C_FLOAT64 & getMinValue() const
bool setSliderValue(const C_FLOAT64 value, const bool &writeToObject=true)
unsigned C_INT32 getTickFactor() const
CRegisteredObjectName mCN
Scale convertScaleNameToScale(const char *scaleName)
CCopasiObject * getSliderObject()