This class implements the main functions necessary to save and load the graph data and metadata information using as strategy a bounding box to create a region that defines a group of elements.  
 More...
#include <BoxLoaderStrategy.h>
This class implements the main functions necessary to save and load the graph data and metadata information using as strategy a bounding box to create a region that defines a group of elements. 
- See also
 - AbstractGraphLoaderStrategy 
 
Definition at line 74 of file BoxLoaderStrategy.h.
 
◆ BoxLoaderStrategy()
◆ ~BoxLoaderStrategy()
  
  
      
        
          | virtual te::graph::BoxLoaderStrategy::~BoxLoaderStrategy  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ calculateBox()
Generate a box with p as center. The new box will have n% of the total graph height and n% of total graph width. 
- Parameters
 - 
  
    | p | Terralib object that defines a geometric point. | 
    | tableName | Attribute used to define the table name that contains the graph elements | 
  
   
- Returns
 - Terralib object that defines geometric region. 
 
 
 
◆ getMetadata()
It returns a pointer to a class that describes the graph metadata. 
- Returns
 - A valid pointer if exists and null pointer in other case 
 
 
 
◆ loadDataByEdgeId()
Functio used to load a group of edges elements given a base element. 
- Parameters
 - 
  
    | edgeId | Attribute used to identify the base element | 
    | g | Pointer to a graph, parent of this element | 
    | gc | This is a optional attribute, if present the cache will be check if the already been loaded  | 
  
   
Implements te::graph::AbstractGraphLoaderStrategy.
 
 
◆ loadDataByVertexId()
Functio used to load a group of vertex elements given a base element. 
- Parameters
 - 
  
    | vertexId | Attribute used to identify the base element | 
    | g | Pointer to a graph, parent of this element | 
    | gc | This is a optional attribute, if present the cache will be check if the already been loaded  | 
  
   
Implements te::graph::AbstractGraphLoaderStrategy.
 
 
◆ loadEdge()
  
  
      
        
          | Edge* te::graph::AbstractGraphLoaderStrategy::loadEdge  | 
          ( | 
          int  | 
          id | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Function used to load one edge given a ID. 
- Parameters
 - 
  
  
 
- Note
 - This function is used in case the graph was saved using the edge list
 
- Returns
 - A valid edge pointer if the element was found and a null pointer in other case 
 
 
 
◆ loadEdgeAttrs()
  
  
      
        
          | Edge* te::graph::AbstractGraphLoaderStrategy::loadEdgeAttrs  | 
          ( | 
          int  | 
          id | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Function used to load one edge given a ID. 
- Parameters
 - 
  
  
 
- Note
 - This function is used in case the graph was saved using the vertex list
 
- Returns
 - A valid vertex pointer if the element was found and a null pointer in other case 
 
 
 
◆ loadVertex()
  
  
      
        
          | Vertex* te::graph::AbstractGraphLoaderStrategy::loadVertex  | 
          ( | 
          int  | 
          id | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Function used to load one vertex given a ID. 
- Parameters
 - 
  
  
 
- Note
 - This function is used in case the graph was saved using the vertex list
 
- Returns
 - A valid vertex pointer if the element was found and a null pointer in other case 
 
 
 
◆ loadVertexAttrs()
  
  
      
        
          | Vertex* te::graph::AbstractGraphLoaderStrategy::loadVertexAttrs  | 
          ( | 
          int  | 
          id | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Function used to load one vertex given a ID. 
- Parameters
 - 
  
  
 
- Note
 - This function is used in case the graph was saved using the edge list
 
- Returns
 - A valid vertex pointer if the element was found and a null pointer in other case 
 
 
 
◆ removeEdge()
  
  
      
        
          | virtual void te::graph::AbstractGraphLoaderStrategy::removeEdge  | 
          ( | 
          int  | 
          id | ) | 
           | 
         
       
   | 
  
virtualinherited   | 
  
 
 
◆ removeVertex()
  
  
      
        
          | virtual void te::graph::AbstractGraphLoaderStrategy::removeVertex  | 
          ( | 
          int  | 
          id | ) | 
           | 
         
       
   | 
  
virtualinherited   | 
  
 
 
◆ saveData()
  
  
      
        
          | virtual void te::graph::AbstractGraphLoaderStrategy::saveData  | 
          ( | 
          GraphData *  | 
          data | ) | 
           | 
         
       
   | 
  
virtualinherited   | 
  
 
 
◆ saveEdgeAttributes()
  
  
      
        
          | void te::graph::AbstractGraphLoaderStrategy::saveEdgeAttributes  | 
          ( | 
          GraphData *  | 
          data | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Used to save the edges elements attributes from a graph data. 
- Parameters
 - 
  
    | data | Pointer to a valid graph data  | 
  
   
 
 
◆ saveGraphEdgeList()
  
  
      
        
          | void te::graph::AbstractGraphLoaderStrategy::saveGraphEdgeList  | 
          ( | 
          GraphData *  | 
          data | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Used to save the edge elements from a graph data. 
- Parameters
 - 
  
    | data | Pointer to a valid graph data  | 
  
   
 
 
◆ saveGraphVertexList()
  
  
      
        
          | void te::graph::AbstractGraphLoaderStrategy::saveGraphVertexList  | 
          ( | 
          GraphData *  | 
          data | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Used to save the vertex elements from a graph data. 
- Parameters
 - 
  
    | data | Pointer to a valid graph data  | 
  
   
 
 
◆ saveVertexAttributes()
  
  
      
        
          | void te::graph::AbstractGraphLoaderStrategy::saveVertexAttributes  | 
          ( | 
          GraphData *  | 
          data | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Used to save the vertex elements attributes from a graph data. 
- Parameters
 - 
  
    | data | Pointer to a valid graph data  | 
  
   
 
 
◆ m_graphMetadata
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/graph/loader/BoxLoaderStrategy.h