Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

exotkAF_ViewFitMenuNode.cxx

Go to the documentation of this file.
00001 
00002 //   exotkAF_ViewFitMenuNode.cxx
00004 //    Copyright (C) 2001  Stephane Routelous
00005 //
00006 //    This file is part of exoTK.
00007 //
00008 //    exoTK is free software; you can redistribute it and/or modify
00009 //    it under the terms of the GNU General Public License as published by
00010 //    the Free Software Foundation; either version 2 of the License, or
00011 //    (at your option) any later version.
00012 //
00013 //    exoTK is distributed in the hope that it will be useful,
00014 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 //    GNU General Public License for more details.
00017 //
00018 //    You should have received a copy of the GNU General Public License
00019 //    along with exoTK; if not, write to the Free Software
00020 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00029 #include <exotkAF_ViewFitMenuNode.hxx>
00030 #ifndef  _exotkAF_View_HeaderFile
00031 #include <exotkAF_View.hxx>
00032 #endif
00033 
00034 //
00035 IMPLEMENT_STANDARD_HANDLE(exotkAF_ViewFitMenuNode, exotkTree_MenuNode)
00036 IMPLEMENT_STANDARD_RTTI(exotkAF_ViewFitMenuNode, exotkTree_MenuNode)
00037 //
00038 // Foreach ancestors, we add a IMPLEMENT_STANDARD_SUPERTYPE and 
00039 // a IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY macro.
00040 // We must respect the order: from the direct ancestor class
00041 // to the base class.
00042 //
00043 
00044 IMPLEMENT_STANDARD_TYPE(exotkAF_ViewFitMenuNode)
00045 IMPLEMENT_STANDARD_SUPERTYPE(exotkTree_MenuNode) 
00046 IMPLEMENT_STANDARD_SUPERTYPE(exotkTree_TreeNode) 
00047 IMPLEMENT_STANDARD_SUPERTYPE(MMgt_TShared) 
00048 IMPLEMENT_STANDARD_SUPERTYPE(Standard_Transient)
00049 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
00050 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(exotkTree_MenuNode)
00051 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(exotkTree_TreeNode)
00052 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(MMgt_TShared)
00053 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(Standard_Transient)
00054 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
00055 IMPLEMENT_STANDARD_TYPE_END(exotkAF_ViewFitMenuNode)
00056 
00057 //==================================================================================
00058 // Function name        : exotkAF_ViewFitMenuNode::exotkAF_ViewFitMenuNode
00059 //==================================================================================
00060 // Written by       : Stephane Routelous - 2001-11-06 15:53:35
00061 // Description      : 
00062 // Return type          : 
00063 //==================================================================================
00064 // Argument         : const Handle_exotkAF_View& aView
00065 exotkAF_ViewFitMenuNode::exotkAF_ViewFitMenuNode(const Handle_exotkAF_View& aView)
00066 :myView(aView)
00067 {
00068         myName = "Fit All";
00069 }
00070 
00071 
00072 //==================================================================================
00073 // Function name        : exotkAF_ViewFitMenuNode::~exotkAF_ViewFitMenuNode
00074 //==================================================================================
00075 // Written by       : Stephane Routelous - 2001-11-06 15:53:36
00076 // Description      : 
00077 // Return type          : 
00078 //==================================================================================
00079 exotkAF_ViewFitMenuNode::~exotkAF_ViewFitMenuNode()
00080 {
00081 }
00082 
00083 //==================================================================================
00084 // Function name        : exotkAF_ViewFitMenuNode::Execute
00085 //==================================================================================
00086 // Written by       : Stephane Routelous - 2001-11-06 15:53:38
00087 // Description      : 
00088 // Return type          : Standard_Boolean 
00089 //==================================================================================
00090 Standard_Boolean exotkAF_ViewFitMenuNode::Execute()
00091 {
00092         myView->FitAll();
00093         return Standard_True;
00094 }

Generated on Wed Jan 23 12:16:40 2002 for exotk by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001