#include <CvrStgFile.h>
Inheritance diagram for CvrStgFile:

Public Member Functions | |
| CvrStgFile (void) | |
| virtual | ~CvrStgFile (void) |
| virtual void | read (BinaryIO *io) |
| virtual void | write (void) |
| void | transform (const std::string &fn) |
| virtual std::list< Property > | getProperties (void) const =0 |
| virtual std::vector< SampleValueAdjacencyList * > | calcSVAdjacencyLists (const std::vector< SampleValue * > &svs) const |
| virtual std::vector< MatchingAlgorithm * > | getMatchingAlgorithms (Graph *g, Matching *m) const |
| const std::string & | getName (void) const |
| bool | is_std (void) const |
| unsigned long | getCapacity (void) const |
| std::string | getHRCapacity (void) const |
| unsigned short | getSamplesPerVertex (void) const |
| UWORD32 | getRadius (void) const |
| EmbValue | getEmbValueModulus (void) const |
| virtual EmbValue | getEmbeddedValue (const SamplePos pos) const |
Static Public Member Functions | |
| CvrStgFile * | readFile (const std::string &fn) |
Protected Member Functions | |
| void | setSamplesPerVertex (unsigned short spv) |
| void | setRadius (UWORD32 r) |
| void | setEmbValueModulus (EmbValue m) |
| void | setBinIO (BinaryIO *io) |
| BinaryIO * | getBinIO (void) const |
Private Types | |
| enum | FILEFORMAT { UNKNOWN, BMP, WAV, AU, JPEG } |
Static Private Member Functions | |
| FILEFORMAT | guessff (BinaryIO *io) |
Private Attributes | |
| BinaryIO * | BinIO |
| unsigned short | SamplesPerVertex |
| UWORD32 | Radius |
| EmbValue | EmbValueModulus |
|
|
|
|
|
|
|
|
|
|
|
calculate a vector a SampleValueAdjacencyLists
May be overridden in derived class to provide a faster version. |
|
|
|
|
|
get the capacity of this cvrstgfile
|
|
|
get the value that is embedded in the Sample pos
May be overwritten by derived class to provide a faster version. |
|
|
values that are embedded in samples will be in 0...Modulus-1 (this is a file-format specific constant) |
|
|
get the capacity as a human-readable string |
|
||||||||||||
|
get recommended list of matching algorithms
|
|
|
get the name of this cvrstgfile |
|
|
|
|
|
get the neighbourhood radius (this is a file-format specific constant) |
|
|
get the number of samples per vertex (this is a file-format specific constant) |
|
|
guesses the file format by looking at the first few bytes |
|
|
|
|
|
|
|
|
this function reads the file with name fn and returns a *File object of the correct type casted to CvrStgFile. |
|
|
|
|
|
|
|
|
set Radius to r unless Args.Radius is set (set Radius to Args.Radius.getValue() then) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.7