InstantMembersNameList.cxx

Go to the documentation of this file.
00001 
00002 //----------------------------------------------------------------------------------------------------------------
00003 // Class definition include
00004 //----------------------------------------------------------------------------------------------------------------
00005 #include "InstantMembersNameList.h"
00006 
00007 //----------------------------------------------------------------------------------------------------------------
00008 // Class implementation
00009 //----------------------------------------------------------------------------------------------------------------
00012 //------------------------------------------------------------------------------------------------------------
00013 // Constructors & Destructors
00014 //------------------------------------------------------------------------------------------------------------
00015 
00016         /*
00017         * Create the InstantMembersNameList with empty data pointers
00018         */
00019         InstantMembersNameList :: InstantMembersNameList()
00020         {
00021                 actualAxeNamesWrapp                             = new NameWrapper("","");
00022                 actualSourceImageNamesWrapp             = new NameWrapper("","");
00023                 actualSectionImageNamesWrapp    = new NameWrapper("","");
00024                 actualOutlineNamesWrapp                 = new NameWrapper("","");
00025         }
00026 
00027         /*
00028         * Destroys the InstantMembersNameList
00029         */
00030         InstantMembersNameList :: ~InstantMembersNameList()
00031         {
00032                 clean();
00033                 outlinesNamesVector.clear();
00034                 axesNamesVector.clear();
00035         }
00036 
00037 //------------------------------------------------------------------------------------------------------------
00038 // Methods
00039 //------------------------------------------------------------------------------------------------------------
00040         /*
00041         * Sets the actual outline names pair
00042         * @param thekeyName The key name asigned to the actual outline  
00043         * @param theRealName The real name asigned to the actual outline
00044         */
00045         void InstantMembersNameList :: setActualOutline(std::string thekeyName, std::string theRealName )
00046         {
00047                 actualOutlineNamesWrapp->setWrappingPair(thekeyName, theRealName);
00048         }
00049 
00050         /*
00051         * Sets the actual axes names pair
00052         * @param thekeyName The key name asigned to the actual outline  
00053         * @param theRealName The real name asigned to the actual outline
00054         */
00055         void InstantMembersNameList :: addOutlineName(std::string thekeyName, std::string theRealName)
00056         {
00057                 NameWrapper * outlineWrap = new NameWrapper (thekeyName, theRealName);
00058                 outlinesNamesVector.push_back(outlineWrap);
00059         }       
00060         
00061         /*
00062         * Sets the actual axes names pair
00063         * @param thekeyName The key name asigned to the actual axe      
00064         * @param theRealName The real name asigned to the actual axe
00065         */
00066         void InstantMembersNameList :: setActualAxeWrap(std::string thekeyName, std::string theRealName)
00067         {
00068                 actualAxeNamesWrapp -> setWrappingPair(thekeyName, theRealName);
00069         }
00070 
00071         /*
00072         * Gets the actual axes key name
00073         * @return actualAxeKeyName The key name asigned to the actual axe
00074         */
00075         std::string InstantMembersNameList :: getActualAxeKeyName()
00076         {
00077                 return actualAxeNamesWrapp->getKeyName();
00078         }
00079 
00080         /*
00081         * Gets the actual axes key name
00082         * @return actualSourceImageKeyName The key name asigned to the actual axe
00083         */
00084         std::string InstantMembersNameList :: getActualSourceImageKeyName()
00085         {
00086                 return actualSourceImageNamesWrapp->getKeyName();
00087         }
00088 
00089         /*
00090         * Gets the actual axes key name
00091         * @return actualSectionImageKeyName The key name asigned to the actual axe
00092         */
00093         std::string InstantMembersNameList :: getActualSectionImageKeyName()
00094         {
00095                 return actualSourceImageNamesWrapp->getKeyName();
00096         }
00097 
00098         /*
00099         * Gets the vector of the key names of currect instant outlines
00100         * @return vectorPairedNames The vector with the pair of outline names wrapping
00101         */
00102         std::vector<NameWrapper *> InstantMembersNameList :: getOutlinesNamesVector()
00103         {
00104                 return outlinesNamesVector;
00105         }
00106 
00107         /*
00108         * Sets the actualSourceImage names pair
00109         * @param thekeyName The key name asigned to the actual outline  
00110         * @param theRealName The real name asigned to the actual outline
00111         */
00112         void InstantMembersNameList :: setActualSourceImageNamesWrapp(std::string thekeyName, std::string theRealName)
00113         {
00114                 actualSourceImageNamesWrapp = new NameWrapper(thekeyName,theRealName);
00115         }
00116 
00117         /*
00118         * Sets the actualSectionImage names pair
00119         * @param thekeyName The key name asigned to the actual outline  
00120         * @param theRealName The real name asigned to the actual outline
00121         */
00122         void InstantMembersNameList :: setActualSectionImageNamesWrapp(std::string thekeyName, std::string theRealName)
00123         {
00124                 actualSectionImageNamesWrapp = new NameWrapper(thekeyName,theRealName);
00125         }
00126 
00127         /*
00128         * Cleans the vector and the information of the instant members wrapping
00129         */
00130         void InstantMembersNameList :: clean()
00131         {
00132                 
00133                 /*
00134                 if(!outlinesNamesVector.empty())
00135                 {while(outlinesNamesVector.size()>0)
00136                         outlinesNamesVector.pop_back();
00137                 }
00138                 if ( !axesNamesVector.empty())
00139                 {
00140                 while(axesNamesVector.size()>0)
00141                         axesNamesVector.pop_back();
00142                 }
00143                 */
00144                 outlinesNamesVector.clear();
00145                 axesNamesVector.clear();
00146                 /*
00147                 delete actualAxeNamesWrapp;
00148                 delete actualSourceImageNamesWrapp;
00149                 delete actualSectionImageNamesWrapp;
00150                 delete actualOutlineNamesWrapp;*/
00151         }
00152    
00153    

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