#include <SMeshTopology.h>
Inherits SMeshN.
Inherited by SLineTopology.
Inheritance diagram for SMeshTopology:

Public Methods | |
| SMeshTopology (int width, int height) | |
| virtual | ~SMeshTopology () | 
| virtual STopologyMod & | getModifier () | 
| virtual int | getWidth () const | 
| virtual int | getHeight () const | 
| virtual int | getCount () const | 
| virtual int | getDim () const | 
| virtual SDimArray | getSize () const | 
| virtual int | getIDAt (int pos) const | 
| virtual int | getPos (int ID) const | 
| virtual bool | isPosFree (int pos) const | 
| virtual bool | canEmbedAt (const STopology &top, int pos) const | 
| virtual bool | canEmbedAt (const SComplexPosition &rHcPos) const | 
| virtual leda_list< int > | canEmbedAt (const STopology &top) const | 
| virtual void | embed (const STopology &top, int pos, int ID) | 
| virtual void | embed (const STopology &top, const SComplexPosition *pMeshNPos, int ID) | 
| virtual void | remove (int ID) | 
| virtual void | clear () | 
| virtual bool | fitsInto (const STopology *top) const | 
| virtual leda_list< int > | getFreePos () const | 
| virtual leda_list< int > | getEmbeddedIDs () const | 
| virtual leda_string | getClassifier () const=0 | 
| virtual bool | isInstanceOf (const leda_string &classifier) const=0 | 
| virtual void | assureInstanceOf (const leda_string &classifier) const=0 | 
| void | addObserver (SObserver &obs) | 
| void | deleteObserver (SObserver &obs) | 
| void | notifyObservers (const SEvent &event) | 
Protected Methods | |
| void | setSize (int width, int height) | 
| void | setSize (SDimArray &newSize) | 
Protected Attributes | |
| SDimArray | _size | 
| leda_h_array< int, SMeshNEntry * > | _IDtoEntry | 
Static Protected Attributes | |
| SMeshNEntry | _defaultEntry | 
Friends | |
| class | SMeshTopologyMod | 
      
  | 
  ||||||||||||
| 
 Constructor. 
  | 
  
      
  | 
  
| 
 Destructor  | 
  
      
  | 
  
| 
 Here another component can register himself as observer of this component 
  | 
  
      
  | 
  
| 
 The same as isInstanceOf(), only that the program is stopped with an error in case of failure 
  | 
  
      
  | 
  
| 
 Return a list of all positions where the topology may be embedded. Default implementation: just call canEmbedAt for all free positions 
 
 Reimplemented in SSetTopology, and SSingleTopology.  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 Return whether the topology can be embedded at a certain position 
 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 Remove all embedded objects. Reimplemented from STopology.  | 
  
      
  | 
  
| 
 Here another component can delete himself from the list of observers of this component 
  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Reimplemented from STopology.  | 
  
      
  | 
  ||||||||||||||||
| 
 Embed a topology. 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 Test whether this Topology is at most as large as another 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 Get the classifier of the object, using the classification scheme. E.g. "P" for Identical Processors 
 
  | 
  
      
  | 
  
| 
 Return the number of positions in the linearized representation. Only positions 0..getCount()-1 are allowed. 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 Get dimension of mesh 
  | 
  
      
  | 
  
| 
 Get all IDs that are currently embedded in the topology. Attention: This method has a very inefficient default implementation. 
  | 
  
      
  | 
  
| 
 Get a list of all positions where no topology is overlapping 
 Reimplemented in SSetTopology, and SSingleTopology.  | 
  
      
  | 
  
| 
 Get height of mesh 
  | 
  
      
  | 
  
| 
 Return ID of the topology which is overlapping position 'pos' 
 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 Get access to the modifier Reimplemented from SMeshN. Reimplemented in SLineTopology, and SSingleTopology.  | 
  
      
  | 
  
| 
 Return position at which the topology with id 'ID' is currently embedded 
 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 Get size of mesh 
  | 
  
      
  | 
  
| 
 Get width of mesh 
  | 
  
      
  | 
  
| 
 Checks whether the object is an instance of the specified or a specialized class 
 
  | 
  
      
  | 
  
| 
 Return whether no topology overlaps with 'pos' 
 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method. 
 
  | 
  
      
  | 
  
| 
 Reverse the embedding 
 Implements STopology. Reimplemented in SSingleTopology.  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
1.2.18