OutlineGroup Class Reference

#include <OutlineGroup.h>

List of all members.

Public Types

enum  {
  PROPAGATION = 0, PLANE_SECTION = 1, OVERLAPED = 2, STRIP = 3,
  MANUAL_GROUP = 4
}

Public Member Functions

 OutlineGroup (std::string theName, int theGroupType)
 ~OutlineGroup ()
bool isMemberOfGroup (std::string aKeyName)
void removeOutline (std::string theNameToRemove, bool allOcurrencies=true)
void addOutline (std::string theNameNw)
std::string getName ()
void setName (std::string theNwName)
bool getIfVisibleGroup ()
void setIfVisibleGroup (bool theNwVisiblity)
bool getIfStaticGroup ()
void setIfStaticGroup (bool theNwStatic)
bool getIfSelectedGroup ()
void setIfSelectedGroup (bool theNwSelected)
bool getIfEditingGroup ()
void setIfEditingGroup (bool theNwEditing)
int getGroupType ()
void setGroupType (int theType)
int getOutlinesCount ()
void setIfEditingGroup (int theTotal)
void addOutline_PropagationType (std::string theOutlineKeyName)
void addOutline_PlaneSectionType (std::string theOutlineKeyName)
void addOutline_OverlapedType (std::string theOutlineKeyName)
void addOutline_StripType (std::string theOutlineKeyName)
void addOutline_ManualType (std::string theOutlineKeyName)
std::vector< std::string > getGroupOutlinesNames ()

Private Attributes

bool acceptsRepetedOutlines
std::string name
bool visibleGroup
bool selectedGroup
bool editingGroup
bool staticGroup
int groupType
int totalCount
std::vector< std::string > outlines_keyNames


Detailed Description

Definition at line 11 of file OutlineGroup.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
PROPAGATION 
PLANE_SECTION 
OVERLAPED 
STRIP 
MANUAL_GROUP 

Definition at line 227 of file OutlineGroup.h.

00228                 {
00229                         PROPAGATION = 0,
00230                         PLANE_SECTION = 1,
00231                         OVERLAPED = 2,
00232                         STRIP = 3,              
00233                         MANUAL_GROUP = 4,               
00234                 };


Constructor & Destructor Documentation

OutlineGroup::OutlineGroup ( std::string  theName,
int  theGroupType 
)

Definition at line 21 of file OutlineGroup.cxx.

References acceptsRepetedOutlines, editingGroup, groupType, MANUAL_GROUP, name, OVERLAPED, PLANE_SECTION, PROPAGATION, selectedGroup, staticGroup, STRIP, totalCount, and visibleGroup.

00022         {
00023                 name = theName;         
00024                 groupType = theGroupType;
00025                 totalCount = 0;
00026                 
00027                 if ( groupType == PROPAGATION || groupType == PLANE_SECTION  )
00028                 {
00029                         visibleGroup = true;                    
00030                         selectedGroup = false;
00031                         editingGroup = false;
00032                         staticGroup = false;
00033                         acceptsRepetedOutlines = false;
00034                 }
00035                 else if ( groupType ==  STRIP )
00036                 {       
00037                         visibleGroup = true;                    
00038                         selectedGroup = false;
00039                         editingGroup = false;
00040                         staticGroup = false;
00041                         acceptsRepetedOutlines = true;
00042                 }
00043                 else if ( groupType == OVERLAPED )
00044                 {                               
00045                         visibleGroup = true;                    
00046                         selectedGroup = false;
00047                         editingGroup = false;
00048                         staticGroup = true;
00049                         acceptsRepetedOutlines = false;
00050                 }
00051                 else if ( groupType ==  MANUAL_GROUP )
00052                 {                               
00053                         visibleGroup = true;
00054                         selectedGroup = true;
00055                         editingGroup = true;
00056                         staticGroup = false;
00057                         acceptsRepetedOutlines = true;
00058                 }                               
00059         }

OutlineGroup::~OutlineGroup (  ) 

Definition at line 64 of file OutlineGroup.cxx.

References outlines_keyNames.

00065         {
00066                 outlines_keyNames.clear();
00067         }


Member Function Documentation

void OutlineGroup::addOutline ( std::string  theNameNw  ) 

Definition at line 114 of file OutlineGroup.cxx.

References acceptsRepetedOutlines, isMemberOfGroup(), and outlines_keyNames.

00115         {
00116                 bool ifInclude = acceptsRepetedOutlines ? true : !isMemberOfGroup(theNameNw);
00117                 if ( ifInclude )
00118                         outlines_keyNames.push_back(theNameNw);
00119         /*
00120                 if( groupType == PROPAGATION )
00121                         addOutline_PropagationType( theNameNw );
00122                 else if ( groupType == PLANE_SECTION )
00123                         addOutline_PlaneSectionType( theNameNw );
00124                 else if ( groupType == OVERLAPED )
00125                         addOutline_OverlapedType( theNameNw );
00126                 else if ( groupType == STRIP )
00127                         addOutline_StripType( theNameNw );
00128                 else if ( groupType == MANUAL_GROUP )
00129                         addOutline_ManualType( theNameNw );
00130         */
00131         }       

Here is the call graph for this function:

void OutlineGroup::addOutline_ManualType ( std::string  theOutlineKeyName  ) 

Definition at line 302 of file OutlineGroup.cxx.

References outlines_keyNames.

00303         {
00304                 outlines_keyNames.push_back(theOutlineKeyName);
00305         }

void OutlineGroup::addOutline_OverlapedType ( std::string  theOutlineKeyName  ) 

Definition at line 282 of file OutlineGroup.cxx.

References isMemberOfGroup(), and outlines_keyNames.

00283         {
00284                 bool ifInclude = isMemberOfGroup(theOutlineKeyName);
00285                 if ( ifInclude )
00286                         outlines_keyNames.push_back(theOutlineKeyName);
00287         }

Here is the call graph for this function:

void OutlineGroup::addOutline_PlaneSectionType ( std::string  theOutlineKeyName  ) 

Definition at line 272 of file OutlineGroup.cxx.

References outlines_keyNames.

00273         {
00274                 outlines_keyNames.push_back(theOutlineKeyName);
00275         }

void OutlineGroup::addOutline_PropagationType ( std::string  theOutlineKeyName  ) 

Definition at line 263 of file OutlineGroup.cxx.

References outlines_keyNames.

00264         {
00265                 outlines_keyNames.push_back(theOutlineKeyName);
00266         }

void OutlineGroup::addOutline_StripType ( std::string  theOutlineKeyName  ) 

Definition at line 293 of file OutlineGroup.cxx.

References outlines_keyNames.

00294         {
00295                 outlines_keyNames.push_back(theOutlineKeyName);
00296         }

std::vector< std::string > OutlineGroup::getGroupOutlinesNames (  ) 

Definition at line 311 of file OutlineGroup.cxx.

References outlines_keyNames.

00312          {
00313                  return outlines_keyNames;
00314          }

int OutlineGroup::getGroupType (  ) 

Definition at line 227 of file OutlineGroup.cxx.

References groupType.

00228         {
00229                 return groupType;
00230         }

bool OutlineGroup::getIfEditingGroup (  ) 

Definition at line 209 of file OutlineGroup.cxx.

References editingGroup.

00210         { 
00211                 return editingGroup;
00212         }

bool OutlineGroup::getIfSelectedGroup (  ) 

Definition at line 191 of file OutlineGroup.cxx.

References selectedGroup.

00192         { 
00193                 return selectedGroup;
00194         }

bool OutlineGroup::getIfStaticGroup (  ) 

Definition at line 173 of file OutlineGroup.cxx.

References staticGroup.

00174         { 
00175                 return staticGroup;
00176         }

bool OutlineGroup::getIfVisibleGroup (  ) 

Definition at line 155 of file OutlineGroup.cxx.

References visibleGroup.

00156         { 
00157                 return visibleGroup;
00158         }

std::string OutlineGroup::getName (  ) 

Definition at line 137 of file OutlineGroup.cxx.

References name.

00138         { 
00139                 return name;
00140         }

int OutlineGroup::getOutlinesCount (  ) 

Definition at line 254 of file OutlineGroup.cxx.

References totalCount.

00255         {
00256                 return totalCount;
00257         }

bool OutlineGroup::isMemberOfGroup ( std::string  aKeyName  ) 

Definition at line 78 of file OutlineGroup.cxx.

References outlines_keyNames.

Referenced by addOutline(), and addOutline_OverlapedType().

00079         {
00080                 for (int a=0; a < outlines_keyNames.size(); a++)
00081                 {
00082                         if ( outlines_keyNames[a].compare(aKeyName) == 0 )
00083                                 return true;
00084                 }               
00085                 return false;
00086         }

Here is the caller graph for this function:

void OutlineGroup::removeOutline ( std::string  theNameToRemove,
bool  allOcurrencies = true 
)

Definition at line 92 of file OutlineGroup.cxx.

References acceptsRepetedOutlines, and outlines_keyNames.

00093         {
00094                 std::vector <std::string>::iterator iter;               
00095                 
00096                 bool ifContinue = true;
00097                 bool deleted = false;
00098                 for ( iter = outlines_keyNames.begin( ); iter != outlines_keyNames.end( ) && ifContinue; iter++ )
00099                 {
00100                         if ( (*iter).compare(theNameToRemove)==0 )
00101                         {
00102                                 outlines_keyNames.erase(iter);
00103                                 deleted = true;
00104                         }
00105                         ifContinue = allOcurrencies ? acceptsRepetedOutlines : deleted; 
00106                 }
00107                 //delete iter; Se incluye esta linea o no ????????????????????
00108         }

void OutlineGroup::setGroupType ( int  theType  ) 

Definition at line 236 of file OutlineGroup.cxx.

References groupType.

00237         {
00238                 groupType = theType;
00239         }

void OutlineGroup::setIfEditingGroup ( int  theTotal  ) 

Definition at line 245 of file OutlineGroup.cxx.

References totalCount.

00246         {
00247                 totalCount = theTotal;
00248         }

void OutlineGroup::setIfEditingGroup ( bool  theNwEditing  ) 

Definition at line 218 of file OutlineGroup.cxx.

References editingGroup.

00219         { 
00220                 editingGroup = theNwEditing;
00221         }

void OutlineGroup::setIfSelectedGroup ( bool  theNwSelected  ) 

Definition at line 200 of file OutlineGroup.cxx.

References selectedGroup.

00201         { 
00202                 selectedGroup = theNwSelected;
00203         }

void OutlineGroup::setIfStaticGroup ( bool  theNwStatic  ) 

Definition at line 182 of file OutlineGroup.cxx.

References staticGroup.

00183         { 
00184                 staticGroup = theNwStatic;
00185         }

void OutlineGroup::setIfVisibleGroup ( bool  theNwVisiblity  ) 

Definition at line 164 of file OutlineGroup.cxx.

References visibleGroup.

00165         { 
00166                 visibleGroup = theNwVisiblity;
00167         }

void OutlineGroup::setName ( std::string  theNwName  ) 

Definition at line 146 of file OutlineGroup.cxx.

References name.

00147         { 
00148                 name = theNwName;
00149         }


Member Data Documentation

Definition at line 180 of file OutlineGroup.h.

Referenced by addOutline(), OutlineGroup(), and removeOutline().

Definition at line 200 of file OutlineGroup.h.

Referenced by getIfEditingGroup(), OutlineGroup(), and setIfEditingGroup().

int OutlineGroup::groupType [private]

Definition at line 210 of file OutlineGroup.h.

Referenced by getGroupType(), OutlineGroup(), and setGroupType().

std::string OutlineGroup::name [private]

Definition at line 185 of file OutlineGroup.h.

Referenced by getName(), OutlineGroup(), and setName().

std::vector< std::string > OutlineGroup::outlines_keyNames [private]

Definition at line 195 of file OutlineGroup.h.

Referenced by getIfSelectedGroup(), OutlineGroup(), and setIfSelectedGroup().

bool OutlineGroup::staticGroup [private]

Definition at line 205 of file OutlineGroup.h.

Referenced by getIfStaticGroup(), OutlineGroup(), and setIfStaticGroup().

int OutlineGroup::totalCount [private]

Definition at line 215 of file OutlineGroup.h.

Referenced by getOutlinesCount(), OutlineGroup(), and setIfEditingGroup().

Definition at line 190 of file OutlineGroup.h.

Referenced by getIfVisibleGroup(), OutlineGroup(), and setIfVisibleGroup().


The documentation for this class was generated from the following files:

Generated on Wed Jun 27 23:28:34 2012 for creaContours_lib by  doxygen 1.5.7.1