1 // SALOME OBJECT : implementation of interactive object visualization for OCC and VTK viewers
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SALOME_InteractiveObject.cxx
25 // Author : Nicolas REJNERI
29 //using namespace std;
31 \class SALOME_InteractiveObject SALOME_InteractiveObject.hxx
35 #include "SALOME_InteractiveObject.ixx"
37 SALOME_InteractiveObject::SALOME_InteractiveObject()
41 myComponentDataType = "";
45 SALOME_InteractiveObject::SALOME_InteractiveObject(const char* anEntry,
46 const char* aComponentDataType,
50 myComponentDataType(aComponentDataType),
54 void SALOME_InteractiveObject::setEntry(const char* anEntry){
58 const char* SALOME_InteractiveObject::getEntry(){
59 return myEntry.c_str();
62 void SALOME_InteractiveObject::setComponentDataType(const char* aComponentDataType){
63 myComponentDataType = aComponentDataType;
66 const char* SALOME_InteractiveObject::getComponentDataType(){
67 return myComponentDataType.c_str();
70 void SALOME_InteractiveObject::setName(const char* aName){
74 const char* SALOME_InteractiveObject::getName(){
75 return myName.c_str();
78 Standard_Boolean SALOME_InteractiveObject::hasEntry(){
82 Standard_Boolean SALOME_InteractiveObject::isSame(const Handle(SALOME_InteractiveObject)& anIO ){
83 if ( anIO->hasEntry() && this->hasEntry() ) {
84 if ( myEntry == anIO->getEntry() )
88 return Standard_False;
91 Standard_Boolean SALOME_InteractiveObject::isComponentType(const char* ComponentDataType){
92 if ( myComponentDataType == ComponentDataType )
95 return Standard_False;
98 Standard_Boolean SALOME_InteractiveObject::hasReference()
100 return myReference != "";
103 const char* SALOME_InteractiveObject::getReference()
105 return myReference.c_str();
108 void SALOME_InteractiveObject::setReference(const char* aReference)
110 myReference = aReference;