Back to index

salome-gui  6.5.0
SALOME_Prs.cxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 // File:        SALOME_Prs.cxx
00024 // Author:      Sergey ANIKIN, Open CASCADE S.A.S. (sergey.anikin@opencascade.com)
00025 
00026 #include "SALOME_Prs.h"
00027 
00031 void SALOME_OCCPrs::DisplayIn( SALOME_View* v ) const
00032 {
00033   if ( v ) v->Display( this );
00034 }
00035 
00039 void SALOME_OCCPrs::EraseIn( SALOME_View* v, const bool forced ) const
00040 {
00041   if ( v ) v->Erase( this, forced );
00042 }
00043 
00047 void SALOME_OCCPrs::BeforeDisplayIn( SALOME_Displayer* d, SALOME_View* v ) const
00048 {
00049   d->BeforeDisplay( v, this );
00050 }
00051 
00055 void SALOME_OCCPrs::AfterDisplayIn( SALOME_Displayer* d, SALOME_View* v ) const
00056 {
00057   d->AfterDisplay( v, this );
00058 }
00059 
00063 void SALOME_OCCPrs::BeforeEraseIn( SALOME_Displayer* d, SALOME_View* v ) const
00064 {
00065   d->BeforeErase( v, this );
00066 }
00067 
00071 void SALOME_OCCPrs::AfterEraseIn( SALOME_Displayer* d, SALOME_View* v ) const
00072 {
00073   d->AfterErase( v, this );
00074 }
00075 
00079 void SALOME_OCCPrs::LocalSelectionIn( SALOME_View* v, const int mode ) const
00080 {
00081   if ( v ) v->LocalSelection( this, mode );
00082 }
00083 
00087 void SALOME_OCCPrs::Update( SALOME_Displayer* d )
00088 {
00089   if ( d ) d->Update( this );
00090 }
00091 
00095 void SALOME_VTKPrs::DisplayIn( SALOME_View* v ) const
00096 {
00097   if ( v ) v->Display( this );
00098 }
00099 
00103 void SALOME_VTKPrs::EraseIn( SALOME_View* v, const bool forced ) const
00104 {
00105   if ( v ) v->Erase( this, forced );
00106 }
00107 
00111 void SALOME_VTKPrs::BeforeDisplayIn( SALOME_Displayer* d, SALOME_View* v ) const
00112 {
00113   d->BeforeDisplay( v, this );
00114 }
00115 
00119 void SALOME_VTKPrs::AfterDisplayIn( SALOME_Displayer* d, SALOME_View* v ) const
00120 {
00121   d->AfterDisplay( v, this );
00122 }
00123 
00127 void SALOME_VTKPrs::BeforeEraseIn( SALOME_Displayer* d, SALOME_View* v ) const
00128 {
00129   d->BeforeErase( v, this );
00130 }
00131 
00135 void SALOME_VTKPrs::AfterEraseIn( SALOME_Displayer* d, SALOME_View* v ) const
00136 {
00137   d->AfterErase( v, this );
00138 }
00139 
00143 void SALOME_VTKPrs::LocalSelectionIn( SALOME_View* v, const int mode ) const
00144 {
00145   if ( v ) v->LocalSelection( this, mode );
00146 }
00147 
00151 void SALOME_VTKPrs::Update( SALOME_Displayer* d )
00152 {
00153   if ( d ) d->Update( this );
00154 }
00155 
00159 void SALOME_Prs2d::DisplayIn( SALOME_View* v ) const
00160 {
00161   if ( v ) v->Display( this );
00162 }
00163 
00167 void SALOME_Prs2d::EraseIn( SALOME_View* v, const bool forced ) const
00168 {
00169   if ( v ) v->Erase( this, forced );
00170 }
00171 
00175 void SALOME_Prs2d::BeforeDisplayIn( SALOME_Displayer* d, SALOME_View* v ) const
00176 {
00177   d->BeforeDisplay( v, this );
00178 }
00179 
00183 void SALOME_Prs2d::AfterDisplayIn( SALOME_Displayer* d, SALOME_View* v ) const
00184 {
00185   d->AfterDisplay( v, this );
00186 }
00187 
00191 void SALOME_Prs2d::BeforeEraseIn( SALOME_Displayer* d, SALOME_View* v ) const
00192 {
00193   d->BeforeErase( v, this );
00194 }
00195 
00199 void SALOME_Prs2d::AfterEraseIn( SALOME_Displayer* d, SALOME_View* v ) const
00200 {
00201   d->AfterErase( v, this );
00202 }
00203 
00207 void SALOME_Prs2d::LocalSelectionIn( SALOME_View* v, const int mode ) const
00208 {
00209   if ( v ) v->LocalSelection( this, mode );
00210 }
00211 
00215 void SALOME_Prs2d::Update( SALOME_Displayer* d )
00216 {
00217   if ( d ) d->Update( this );
00218 }
00219 
00223 void SALOME_View::Display( const SALOME_Prs* prs )
00224 {
00225   prs->DisplayIn( this );
00226 }
00227 
00231 void SALOME_View::Erase( const SALOME_Prs* prs, const bool forced )
00232 {
00233   prs->EraseIn( this, forced );
00234 }
00235 
00239 void SALOME_View::LocalSelection( const SALOME_Prs* prs, const int mode )
00240 {
00241   prs->LocalSelectionIn( this, mode );
00242 }
00243 
00247 void SALOME_View::Display( const SALOME_OCCPrs* )
00248 {
00249 //  MESSAGE( "SALOME_View::Display( const SALOME_OCCPrs& ) called! Probably, presentation is being displayed in uncompatible viewframe." );
00250 }
00251 
00255 void SALOME_View::Display( const SALOME_VTKPrs* )
00256 {
00257 //  MESSAGE( "SALOME_View::Display( const SALOME_VTKPrs& ) called! Probably, presentation is being displayed in uncompatible viewframe." );
00258 }
00259 
00263 void SALOME_View::Display( const SALOME_Prs2d* )
00264 {
00265 //  MESSAGE( "SALOME_View::Display( const SALOME_Prs2d& ) called! Probably, presentation is being displayed in uncompatible viewframe." );
00266 }
00267 
00271 void SALOME_View::Erase( const SALOME_OCCPrs*, const bool )
00272 {
00273 //  MESSAGE( "SALOME_View::Erase( const SALOME_OCCPrs& ) called! Probably, presentation is being erased in uncompatible viewframe." );
00274 }
00275 
00279 void SALOME_View::Erase( const SALOME_VTKPrs*, const bool )
00280 {
00281 //  MESSAGE( "SALOME_View::Erase( const SALOME_VTKPrs& ) called! Probably, presentation is being erased in uncompatible viewframe." );
00282 }
00283 
00287 void SALOME_View::Erase( const SALOME_Prs2d*, const bool )
00288 {
00289 //  MESSAGE( "SALOME_View::Erase( const SALOME_Prs2d& ) called! Probably, presentation is being erased in uncompatible viewframe." );
00290 }
00291 
00295 void SALOME_View::EraseAll( const bool )
00296 {
00297 //  MESSAGE( "SALOME_View::EraseAll() called!" );
00298 }
00299 
00303 void SALOME_View::LocalSelection( const SALOME_OCCPrs*, const int )
00304 {
00305 //  MESSAGE( "SALOME_View::LocalSelection( const SALOME_OCCPrs* ) called!
00306 //   Probably, selection is being activated in uncompatible viewframe." );
00307 }
00308 
00312 void SALOME_View::LocalSelection( const SALOME_VTKPrs*, const int )
00313 {
00314 //  MESSAGE( "SALOME_View::LocalSelection( const SALOME_VTKPrs* ) called!
00315 //   Probably, selection is being activated in uncompatible viewframe." );
00316 }
00317 
00321 void SALOME_View::LocalSelection( const SALOME_Prs2d*, const int )
00322 {
00323 //  MESSAGE( "SALOME_View::LocalSelection( const SALOME_Prs2d* ) called!
00324 //   Probably, selection is being activated in uncompatible viewframe." );
00325 }
00326 
00330 void SALOME_View::GlobalSelection( const bool ) const
00331 {
00332 //  MESSAGE( "SALOME_View::GlobalSelection() called!
00333 //   Probably, selection is being activated in uncompatible viewframe." );
00334 }
00335 
00336 void SALOME_View::BeforeDisplay( SALOME_Displayer* d, const SALOME_Prs* p )
00337 {
00338   p->BeforeDisplayIn( d, this );
00339 }
00340 
00341 void SALOME_View::AfterDisplay( SALOME_Displayer* d, const SALOME_Prs* p )
00342 {
00343   p->AfterDisplayIn( d, this );
00344 }
00345 
00346 void SALOME_View::BeforeErase( SALOME_Displayer* d, const SALOME_Prs* p )
00347 {
00348   p->BeforeEraseIn( d, this );
00349 }
00350 
00351 void SALOME_View::AfterErase ( SALOME_Displayer* d, const SALOME_Prs* p )
00352 {
00353   p->AfterEraseIn( d, this );
00354 }
00355 
00359 void SALOME_Displayer::UpdatePrs( SALOME_Prs* prs )
00360 {
00361   prs->Update( this );
00362 }
00363 
00367 void SALOME_Displayer::Update( SALOME_OCCPrs* )
00368 {
00369 //  MESSAGE( "SALOME_Displayer::Update( SALOME_OCCPrs* ) called! Probably, presentation is being updated in uncompatible viewframe." );
00370 }
00371 
00375 void SALOME_Displayer::Update( SALOME_VTKPrs* )
00376 {
00377 //  MESSAGE( "SALOME_Displayer::Update( SALOME_VTKPrs* ) called! Probably, presentation is being updated in uncompatible viewframe." );
00378 }
00379 
00383 void SALOME_Displayer::Update( SALOME_Prs2d* )
00384 {
00385 //  MESSAGE( "SALOME_Displayer::Update( SALOME_Prs2d* ) called! Probably, presentation is being updated in uncompatible viewframe." );
00386 }
00387