Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Matrix item class. More...
#include <ilviews/gadgets/matrix.h>
Public Member Functions | |
IlvIntMatrixItem (IlInt value) | |
Constructor. | |
virtual IlvAbstractMatrixItem * | copy () const |
Copies this object. | |
IlInt | getInt () const |
Returns the value currently stored in this matrix item. | |
virtual const char * | getLabel () const |
Returns the label that identifies this matrix item. | |
void | setInt (IlInt value) |
Sets the integer value of the matrix item. | |
virtual void | setLabel (const char *, IlBoolean copy=IlTrue) |
Sets the label of the matrix item. | |
virtual void | write (IlvOutputFile &) const |
Writes an object description to a file. | |
Static Public Member Functions | |
static IlvAbstractMatrixItem * | readItem (IlvInputFile &, IlvDisplay *) |
Reads an object description from a file. |
Matrix item class.
Library: ilvadvgdt
Use this class to define a matrix item as an integer.
IlvFilledIntMatrixItem
, IlvMatrix
IlvIntMatrixItem::IlvIntMatrixItem | ( | IlInt | value | ) |
Constructor.
Initializes a new instance of the class IlvIntMatrixItem
.
value | The integer value encapsulated by the item. |
virtual IlvAbstractMatrixItem* IlvIntMatrixItem::copy | ( | ) | const [virtual] |
Copies this object.
Allocates and returns a copy of this object.
IlvPredefinedMatrixItemIOMembers
. Reimplemented from IlvAbstractMatrixItem.
Reimplemented in IlvFilledIntMatrixItem.
IlInt IlvIntMatrixItem::getInt | ( | ) | const |
Returns the value currently stored in this matrix item.
setInt
virtual const char* IlvIntMatrixItem::getLabel | ( | ) | const [virtual] |
Returns the label that identifies this matrix item.
setLabel
Reimplemented from IlvAbstractMatrixItem.
Reimplemented in IlvFilledIntMatrixItem.
static IlvAbstractMatrixItem* IlvIntMatrixItem::readItem | ( | IlvInputFile & | file, | |
IlvDisplay * | display | |||
) | [static] |
Reads an object description from a file.
Reads an object description from the file input. It reads the information that was saved by the member function write
to be able to create a new instance of this object. Usually, because of the availability of the constructor that expects an IlvInputFile
, readItem
should be equivalent to :
IlvAbstractMatrixItem* MyClass::readItem(IlvInputFile& file, IlvDisplay* display) { return new MyClass(file, display); }
file | The file to be read from. | |
display | The display used to create the object. |
readItem
method is not capitalized like other static methods so that it is consistent with the write
method. Reimplemented from IlvAbstractMatrixItem.
Reimplemented in IlvFilledIntMatrixItem.
void IlvIntMatrixItem::setInt | ( | IlInt | value | ) |
virtual void IlvIntMatrixItem::setLabel | ( | const char * | label, | |
IlBoolean | copy = IlTrue | |||
) | [virtual] |
Sets the label of the matrix item.
label | The label of the matrix item. | |
copy | A Boolean value specifying whether a label should be copied. If the value is IlFalse |
getLabel
Reimplemented from IlvAbstractMatrixItem.
Reimplemented in IlvFilledIntMatrixItem.
virtual void IlvIntMatrixItem::write | ( | IlvOutputFile & | file | ) | const [virtual] |
Writes an object description to a file.
Writes out, in a file, the object description. This description contains all the information necessary to create an exact copy of this object by means of the member function readItem
.
file | The name of the file to be written to. |
Reimplemented from IlvAbstractMatrixItem.
Reimplemented in IlvFilledIntMatrixItem.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.