1 // File: SALOME_Prs.cxx
2 // Created: Wed Apr 28 15:03:43 2004
3 // Author: Sergey ANIKIN
4 // <san@startrex.nnov.opencascade.com>
7 #include "SALOME_Prs.h"
9 //#include "utilities.h"
11 //using namespace std;
13 //===========================================================
15 * Function: SALOME_OCCPrs::DisplayIn \n
16 * Purpose: Dispatches display operation to proper Display() \n
17 * method of SALOME_View
19 //===========================================================
20 void SALOME_OCCPrs::DisplayIn( SALOME_View* v ) const
22 if ( v ) v->Display( this );
25 //===========================================================
27 * Function: SALOME_OCCPrs::EraseIn \n
28 * Purpose: Dispatches display operation to proper Erase() \n
29 * method of SALOME_View
31 //===========================================================
32 void SALOME_OCCPrs::EraseIn( SALOME_View* v, const bool forced ) const
34 if ( v ) v->Erase( this, forced );
37 //===========================================================
39 * Function: SALOME_OCCPrs::LocalSelectionIn \n
40 * Purpose: Dispatches operation to proper LocalSelectionIn() \n
41 * method of SALOME_View
43 //===========================================================
44 void SALOME_OCCPrs::LocalSelectionIn( SALOME_View* v, const int mode ) const
46 if ( v ) v->LocalSelection( this, mode );
49 //===========================================================
51 * Function: SALOME_OCCPrs::Update \n
52 * Purpose: Dispatches update operation to proper Update() \n
53 * method of SALOME_Displayer
55 //===========================================================
56 void SALOME_OCCPrs::Update( SALOME_Displayer* d )
58 if ( d ) d->Update( this );
61 //===========================================================
63 * Function: SALOME_VTKPrs::DisplayIn \n
64 * Purpose: Dispatches display operation to proper Display() \n
65 * method of SALOME_View
67 //===========================================================
68 void SALOME_VTKPrs::DisplayIn( SALOME_View* v ) const
70 if ( v ) v->Display( this );
73 //===========================================================
75 * Function: SALOME_VTKPrs::EraseIn \n
76 * Purpose: Dispatches display operation to proper Erase() \n
77 * method of SALOME_View
79 //===========================================================
80 void SALOME_VTKPrs::EraseIn( SALOME_View* v, const bool forced ) const
82 if ( v ) v->Erase( this, forced );
85 //===========================================================
87 * Function: SALOME_VTKPrs::LocalSelectionIn \n
88 * Purpose: Dispatches operation to proper LocalSelectionIn() \n
89 * method of SALOME_View
91 //===========================================================
92 void SALOME_VTKPrs::LocalSelectionIn( SALOME_View* v, const int mode ) const
94 if ( v ) v->LocalSelection( this, mode );
97 //===========================================================
99 * Function: SALOME_VTKPrs::Update \n
100 * Purpose: Dispatches update operation to proper Update() \n
101 * method of SALOME_Displayer
103 //===========================================================
104 void SALOME_VTKPrs::Update( SALOME_Displayer* d )
106 if ( d ) d->Update( this );
109 //===========================================================
111 * Function: SALOME_Prs2d::DisplayIn \n
112 * Purpose: Dispatches display operation to proper Display() \n
113 * method of SALOME_View
115 //===========================================================
116 void SALOME_Prs2d::DisplayIn( SALOME_View* v ) const
118 if ( v ) v->Display( this );
121 //===========================================================
123 * Function: SALOME_Prs2d::EraseIn \n
124 * Purpose: Dispatches display operation to proper Erase() \n
125 * method of SALOME_View
127 //===========================================================
128 void SALOME_Prs2d::EraseIn( SALOME_View* v, const bool forced ) const
130 if ( v ) v->Erase( this, forced );
133 //===========================================================
135 * Function: SALOME_Prs2d::LocalSelectionIn \n
136 * Purpose: Dispatches operation to proper LocalSelectionIn() \n
137 * method of SALOME_View
139 //===========================================================
140 void SALOME_Prs2d::LocalSelectionIn( SALOME_View* v, const int mode ) const
142 if ( v ) v->LocalSelection( this, mode );
145 //===========================================================
147 * Function: SALOME_Prs2d::Update \n
148 * Purpose: Dispatches update operation to proper Update() \n
149 * method of SALOME_Displayer
151 //===========================================================
152 void SALOME_Prs2d::Update( SALOME_Displayer* d )
154 if ( d ) d->Update( this );
157 //===========================================================
159 * Function: SALOME_View::Display \n
160 * Purpose: Gives control to SALOME_Prs object, so that \n
161 * it could perform double dispatch
163 //===========================================================
164 void SALOME_View::Display( const SALOME_Prs* prs )
166 prs->DisplayIn( this );
169 //===========================================================
171 * Function: SALOME_View::Erase \n
172 * Purpose: Gives control to SALOME_Prs object, so that \n
173 * it could perform double dispatch
175 //===========================================================
176 void SALOME_View::Erase( const SALOME_Prs* prs, const bool forced )
178 prs->EraseIn( this, forced );
181 //===========================================================
183 * Function: SALOME_View::LocalSelection \n
184 * Purpose: Gives control to SALOME_Prs object, so that \n
185 * it could perform double dispatch
187 //===========================================================
188 void SALOME_View::LocalSelection( const SALOME_Prs* prs, const int mode )
190 prs->LocalSelectionIn( this, mode );
193 //===========================================================
195 * Function: SALOME_View::Display \n
196 * Purpose: Virtual method, should be reimplemented in successors, \n
197 * by default issues a warning and does nothing.
199 //===========================================================
200 void SALOME_View::Display( const SALOME_OCCPrs* )
202 // MESSAGE( "SALOME_View::Display( const SALOME_OCCPrs& ) called! Probably, presentation is being displayed in uncompatible viewframe." );
205 //===========================================================
207 * Function: SALOME_View::Display \n
208 * Purpose: Virtual method, should be reimplemented in successors, \n
209 * by default issues a warning and does nothing.
211 //===========================================================
212 void SALOME_View::Display( const SALOME_VTKPrs* )
214 // MESSAGE( "SALOME_View::Display( const SALOME_VTKPrs& ) called! Probably, presentation is being displayed in uncompatible viewframe." );
217 //===========================================================
219 * Function: SALOME_View::Display \n
220 * Purpose: Virtual method, should be reimplemented in successors, \n
221 * by default issues a warning and does nothing.
223 //===========================================================
224 void SALOME_View::Display( const SALOME_Prs2d* )
226 // MESSAGE( "SALOME_View::Display( const SALOME_Prs2d& ) called! Probably, presentation is being displayed in uncompatible viewframe." );
229 //===========================================================
231 * Function: SALOME_View::Erase \n
232 * Purpose: Virtual method, should be reimplemented in successors, \n
233 * by default issues a warning and does nothing.
235 //===========================================================
236 void SALOME_View::Erase( const SALOME_OCCPrs*, const bool )
238 // MESSAGE( "SALOME_View::Erase( const SALOME_OCCPrs& ) called! Probably, presentation is being erased in uncompatible viewframe." );
241 //===========================================================
243 * Function: SALOME_View::Erase \n
244 * Purpose: Virtual method, should be reimplemented in successors, \n
245 * by default issues a warning and does nothing.
247 //===========================================================
248 void SALOME_View::Erase( const SALOME_VTKPrs*, const bool )
250 // MESSAGE( "SALOME_View::Erase( const SALOME_VTKPrs& ) called! Probably, presentation is being erased in uncompatible viewframe." );
253 //===========================================================
255 * Function: SALOME_View::Erase \n
256 * Purpose: Virtual method, should be reimplemented in successors, \n
257 * by default issues a warning and does nothing.
259 //===========================================================
260 void SALOME_View::Erase( const SALOME_Prs2d*, const bool )
262 // MESSAGE( "SALOME_View::Erase( const SALOME_Prs2d& ) called! Probably, presentation is being erased in uncompatible viewframe." );
265 //===========================================================
267 * Function: SALOME_View::EraseAll \n
268 * Purpose: Virtual method, should be reimplemented in successors, \n
269 * by default issues a warning and does nothing.
271 //===========================================================
272 void SALOME_View::EraseAll( const bool )
274 // MESSAGE( "SALOME_View::EraseAll() called!" );
277 //===========================================================
279 * Function: SALOME_View::LocalSelection \n
280 * Purpose: Virtual method, should be reimplemented in successors, \n
281 * by default issues a warning and does nothing.
283 //===========================================================
284 void SALOME_View::LocalSelection( const SALOME_OCCPrs*, const int )
286 // MESSAGE( "SALOME_View::LocalSelection( const SALOME_OCCPrs* ) called! \
287 // Probably, selection is being activated in uncompatible viewframe." );
290 //===========================================================
292 * Function: SALOME_View::LocalSelection \n
293 * Purpose: Virtual method, should be reimplemented in successors, \n
294 * by default issues a warning and does nothing.
296 //===========================================================
297 void SALOME_View::LocalSelection( const SALOME_VTKPrs*, const int )
299 // MESSAGE( "SALOME_View::LocalSelection( const SALOME_VTKPrs* ) called! \
300 // Probably, selection is being activated in uncompatible viewframe." );
303 //===========================================================
305 * Function: SALOME_View::LocalSelection \n
306 * Purpose: Virtual method, should be reimplemented in successors, \n
307 * by default issues a warning and does nothing.
309 //===========================================================
310 void SALOME_View::LocalSelection( const SALOME_Prs2d*, const int )
312 // MESSAGE( "SALOME_View::LocalSelection( const SALOME_Prs2d* ) called! \
313 // Probably, selection is being activated in uncompatible viewframe." );
316 //===========================================================
318 * Function: SALOME_View::GlobalSelection \n
319 * Purpose: Virtual method, should be reimplemented in successors, \n
320 * by default issues a warning and does nothing.
322 //===========================================================
323 void SALOME_View::GlobalSelection( const bool ) const
325 // MESSAGE( "SALOME_View::GlobalSelection() called! \
326 // Probably, selection is being activated in uncompatible viewframe." );
329 //===========================================================
331 * Function: SALOME_Displayer::UpdatePrs \n
332 * Purpose: Gives control to SALOME_Prs object, so that \n
333 * it could perform double dispatch
335 //===========================================================
336 void SALOME_Displayer::UpdatePrs( SALOME_Prs* prs )
341 //===========================================================
343 * Function: SALOME_Displayer::Update \n
344 * Purpose: Virtual method, should be reimplemented in successors, \n
345 * by default issues a warning and does nothing.
347 //===========================================================
348 void SALOME_Displayer::Update( SALOME_OCCPrs* )
350 // MESSAGE( "SALOME_Displayer::Update( SALOME_OCCPrs* ) called! Probably, presentation is being updated in uncompatible viewframe." );
353 //===========================================================
355 * Function: SALOME_Displayer::Update \n
356 * Purpose: Virtual method, should be reimplemented in successors, \n
357 * by default issues a warning and does nothing.
359 //===========================================================
360 void SALOME_Displayer::Update( SALOME_VTKPrs* )
362 // MESSAGE( "SALOME_Displayer::Update( SALOME_VTKPrs* ) called! Probably, presentation is being updated in uncompatible viewframe." );
365 //===========================================================
367 * Function: SALOME_Displayer::Update \n
368 * Purpose: Virtual method, should be reimplemented in successors, \n
369 * by default issues a warning and does nothing.
371 //===========================================================
372 void SALOME_Displayer::Update( SALOME_Prs2d* )
374 // MESSAGE( "SALOME_Displayer::Update( SALOME_Prs2d* ) called! Probably, presentation is being updated in uncompatible viewframe." );