The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cVectorArea.h>
Public Member Functions | |
cVectorArea (cFibElement *pInDefiningElement=NULL) | |
cVectorArea (const cVectorArea &vector, cFibElement *pInDefiningElement=NULL) | |
cVectorArea (longFib lLowerBound, longFib lUpperBound, cFibElement *pInDefiningElement=NULL) | |
cVectorArea (longFib lLowerBound, cFibVariable *pVariableUpperBound, cFibElement *pInDefiningElement=NULL) | |
cVectorArea (cFibVariable *pVariableLowerBound, longFib lUpperBound, cFibElement *pInDefiningElement=NULL) | |
cVectorArea (cFibVariable *pVariableLowerBound, cFibVariable *pVariableUpperBound, cFibElement *pInDefiningElement=NULL) | |
cVectorArea (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables) | |
cVectorArea (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomain *pInVectorDomain, const cDomain *pInDomainVariable) | |
virtual cVectorArea * | createInstance (unsignedIntFib iNumberOfElements=2, cFibElement *definingAreaElement=NULL) const |
virtual void | setDefiningFibElement (cFibElement *fibElement=NULL, bool bCheckDomains=true) |
virtual cTypeElement * | getElementType () const |
virtual cDomainVectorBasis * | getDomain () const |
virtual cDomainVectorBasis * | getStandardDomain () const |
virtual cDomainVectorBasis * | getValueDomain () const |
virtual string | getVectorType () const |
longFib | getLowerBound () const |
longFib | getUpperBound () const |
list< longFib > | getAreaValues () const |
bool | setLowerBoundValue (longFib lValue) |
bool | setUpperBoundValue (longFib lValue) |
bool | setLowerBoundVariable (cFibVariable *pVariable) |
bool | setUpperBoundVariable (cFibVariable *pVariable) |
virtual cVectorArea & | operator= (const cFibVector &vector) |
Public Member Functions inherited from fib::cFibVector | |
virtual | ~cFibVector () |
unsignedIntFib | getNumberOfElements () const |
virtual bool | isVariable (unsignedIntFib iNumberElement) const |
virtual bool | isUsedVariable (const cFibVariable *variable) const |
virtual set< cFibVariable * > | getUsedVariables () |
virtual bool | replaceVariable (cFibVariable *variableOld, cFibVariable *variableNew) |
virtual doubleFib | getValue (unsignedIntFib iNumberElement) const |
virtual bool | setValue (unsignedIntFib iNumberElement, doubleFib dValue) |
virtual cFibVariable * | getVariable (unsignedIntFib iNumberElement) |
virtual bool | setVariable (unsignedIntFib iNumberElement, cFibVariable *pVariable) |
virtual cDomain * | getDomain (unsignedIntFib iNumberElement) const |
virtual cDomainSingle * | getVariableDomain () const |
cFibElement * | getDefiningFibElement () const |
virtual unsignedLongFib | getCompressedSize () const |
virtual unsignedLongFib | getCompressedSize (const cDomainVectorBasis &valueVectorDomain, const cDomainSingle &variableDomain) const |
virtual bool | store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const |
virtual bool | store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const cDomainVectorBasis &valueVectorDomain, const cDomainSingle &variableDomain) const |
virtual bool | storeXml (ostream &stream) const |
virtual bool | equal (const cFibVector &vector) const |
virtual bool | operator== (const cFibVector &vector) const |
bool | operator!= (const cFibVector &vector) const |
virtual bool | operator< (const cFibVector &vector) const |
Additional Inherited Members | |
Static Public Member Functions inherited from fib::cFibVector | |
static bool | lowerVector (const cFibVector &vector1, const cFibVector &vector2) |
Protected Types inherited from fib::cFibVector | |
enum | eVectorType { VALUE, VARIABLE } |
Protected Member Functions inherited from fib::cFibVector | |
cFibVector (unsignedIntFib iNumberOfVectorElements=1, cFibElement *definingFibElement=NULL) | |
cFibVector (const cFibVector &vector, cFibElement *definingFibElement=NULL) | |
cFibVector (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables) | |
cFibVector (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomain *pInVectorDomain, const cDomain *pInDomainVariable, const unsignedIntFib uiInNumberOfElements=0) | |
virtual cFibElement * | getVariableUsingFibElement () const |
virtual bool | deleteVariable (cFibVariable *pVariable) |
Protected Attributes inherited from fib::cFibVector | |
vector< eVectorType > | liVectorType |
vector< doubleFib > | liVectorValues |
vector< cFibVariable * > | liVectorVariable |
cFibElement * | pDefiningFibElement |
Definition at line 57 of file cVectorArea.h.
fib::cVectorArea::cVectorArea | ( | cFibElement * | pInDefiningElement = NULL | ) |
The constructor of the subareavector.
pInDefiningElement | the Fib-element which defines/ uses the checksum -property -vector |
fib::cVectorArea::cVectorArea | ( | const cVectorArea & | vector, |
cFibElement * | pInDefiningElement = NULL |
||
) |
The copy constructor of the vector.
vector | the vector from which to copy the data |
pInDefiningElement | the Fib-element which defines/ uses the new vector |
fib::cVectorArea::cVectorArea | ( | longFib | lLowerBound, |
longFib | lUpperBound, | ||
cFibElement * | pInDefiningElement = NULL |
||
) |
parameterconstructor
lLowerBound | the lower bound value to set |
lUpperBound | the upper bound value to set |
pInDefiningElement | the Fib-element which defines/ uses the new vector |
fib::cVectorArea::cVectorArea | ( | longFib | lLowerBound, |
cFibVariable * | pVariableUpperBound, | ||
cFibElement * | pInDefiningElement = NULL |
||
) |
parameterconstructor
lLowerBound | the lower bound value to set |
pVariableUpperBound | the upper bound variable to set |
pInDefiningElement | the Fib-element which defines/ uses the new vector |
fib::cVectorArea::cVectorArea | ( | cFibVariable * | pVariableLowerBound, |
longFib | lUpperBound, | ||
cFibElement * | pInDefiningElement = NULL |
||
) |
parameterconstructor
pVariableLowerBound | the lower bound variable to set |
lUpperBound | the upper bound value to set |
pInDefiningElement | the Fib-element which defines/ uses the new vector |
fib::cVectorArea::cVectorArea | ( | cFibVariable * | pVariableLowerBound, |
cFibVariable * | pVariableUpperBound, | ||
cFibElement * | pInDefiningElement = NULL |
||
) |
parameterconstructor
pVariableLowerBound | the lower bound variable to set |
pVariableUpperBound | the upper bound variable to set |
pInDefiningElement | the Fib-element which defines/ uses the new vector |
fib::cVectorArea::cVectorArea | ( | const TiXmlElement * | pXmlElement, |
intFib & | outStatus, | ||
list< cFibVariable * > & | liDefinedVariables | ||
) |
The constructor for restoring a vector from an TinyXml element.
pXmlNode | a pointer to the TinyXml node the vector is stored in |
outStatus | An reference to an integervalue where the errorvalue can be stored to. possible errorvalues are:
|
liDefinedVariables | a list with the defined variables for the to restore vector, every variable should have it's number (the number under which it is stored) as it's value |
fib::cVectorArea::cVectorArea | ( | cReadBits & | iBitStream, |
intFib & | outStatus, | ||
list< cFibVariable * > & | liDefinedVariables, | ||
const cDomain * | pInVectorDomain, | ||
const cDomain * | pInDomainVariable | ||
) |
This constructor restores a subareasvector from the stream where it is stored in the compressed fib -format.
iBitStream | the stream where this vector is stored to in, because this stream is an cReadBits, any number of bits can be readed from it |
outStatus | An reference to an integervalue where the errorvalue can be stored to. If the pointer is NULL no errorvalue will be given back. possible errorvalues are:
|
liDefinedVariables | a list with the defined variables for the to restore vector, every variable should have it's number (the number under which it is stored) as it's value |
pInVectorDomain | the domain for this vector |
pInDomainVariable | the domain for variables |
|
virtual |
This method creates an instance of this vector type.
iNumberOfElements | number of elements in the vector (this will be ignored for the subareavector) |
definingAreaElement | the Fib-areaelement which defines/ uses the subareasvector |
Implements fib::cFibVector.
list<longFib> fib::cVectorArea::getAreaValues | ( | ) | const |
|
virtual |
Returns a reference to the domain of the vector or the nullpointer NULL if no domain is defined for the vector. If the nullpointer NULL is returned the standarddomain is valid for the vector.
Reimplemented from fib::cFibVector.
|
virtual |
Returns the type of the vector. You have to delete the returned object after usage.
Implements fib::cFibVector.
longFib fib::cVectorArea::getLowerBound | ( | ) | const |
|
virtual |
Returns a reference to the standard domain of the vector. You have to delete the returned object after usage.
Reimplemented from fib::cFibVector.
longFib fib::cVectorArea::getUpperBound | ( | ) | const |
|
virtual |
Returns a reference to the value domain of the vector or the nullpointer NULL if no value domain is defined for the vector. If the nullpointer NULL is returned the standarddomain is valid for the vector.
Reimplemented from fib::cFibVector.
|
virtual |
Implements fib::cFibVector.
|
virtual |
This Method makes this vectorelements equal to the correspondending vectorelements of the given vector. The type of the vector and the number of elements won't be changed.
vector | the vector to copy |
Reimplemented from fib::cFibVector.
|
virtual |
Sets the Fib-element which defines/ uses this vector. If the given pointer is the nullpointer (standardvalue), no Fib-element defines this vector.
pInDefiningElement | a pointer to the Fib-element which defines/ uses this vector |
bCheckDomains | getthe domains of the defining element and check the vectorelements with it |
Reimplemented from fib::cFibVector.
bool fib::cVectorArea::setLowerBoundValue | ( | longFib | lValue | ) |
This method sets the lower bound of the subarea to the given value.
lValue | the lower bound to set |
bool fib::cVectorArea::setLowerBoundVariable | ( | cFibVariable * | pVariable | ) |
This method sets the lower bound of the subarea to the given variable.
pVariable | the lower bound variable to set |
bool fib::cVectorArea::setUpperBoundValue | ( | longFib | lValue | ) |
This method sets the upper bound of the subarea to the given value.
lValue | the upper bound to set |
bool fib::cVectorArea::setUpperBoundVariable | ( | cFibVariable * | pVariable | ) |
This method sets the upper bound of the subarea to the given variable.
pVariable | the upper bound variable to set |