7fd59977 |
1 | #include <V3d_Viewer.jxx> |
2 | #include <V3d.hxx> |
3 | void V3d_Viewer::InitActiveViews() { |
4 | myActiveViewsIterator.Initialize(MyActiveViews); |
5 | } |
6 | Standard_Boolean V3d_Viewer::MoreActiveViews () const { |
7 | return myActiveViewsIterator.More(); |
8 | } |
9 | void V3d_Viewer::NextActiveViews () { |
10 | if(!MyActiveViews.IsEmpty())myActiveViewsIterator.Next(); |
11 | } |
12 | Handle(V3d_View) V3d_Viewer::ActiveView() const { |
13 | return (Handle(V3d_View)&)(myActiveViewsIterator.Value());} |
14 | |
15 | Standard_Boolean V3d_Viewer::LastActiveView() const { |
16 | return MyActiveViews.Extent() == 1;} |
17 | |
18 | Standard_Boolean V3d_Viewer::IsActive(const Handle(V3d_View)& aView) const { |
19 | return MyActiveViews.Contains(aView); |
20 | } |
21 | void V3d_Viewer::InitDefinedViews() { |
22 | myDefinedViewsIterator.Initialize(MyDefinedViews); |
23 | } |
24 | Standard_Boolean V3d_Viewer::MoreDefinedViews () const { |
25 | return myDefinedViewsIterator.More(); |
26 | } |
27 | void V3d_Viewer::NextDefinedViews () { |
28 | if(!MyDefinedViews.IsEmpty())myDefinedViewsIterator.Next(); |
29 | } |
30 | Handle(V3d_View) V3d_Viewer::DefinedView() const { |
31 | return (Handle(V3d_View)&)(myDefinedViewsIterator.Value());} |
32 | |
33 | void V3d_Viewer::InitActiveLights() { |
34 | myActiveLightsIterator.Initialize(MyActiveLights); |
35 | } |
36 | Standard_Boolean V3d_Viewer::MoreActiveLights () const { |
37 | return myActiveLightsIterator.More(); |
38 | } |
39 | void V3d_Viewer::NextActiveLights () { |
40 | myActiveLightsIterator.Next(); |
41 | } |
42 | Handle(V3d_Light) V3d_Viewer::ActiveLight() const { |
43 | return (Handle(V3d_Light)&)(myActiveLightsIterator.Value());} |
44 | |
45 | void V3d_Viewer::InitDefinedLights() { |
46 | myDefinedLightsIterator.Initialize(MyDefinedLights); |
47 | } |
48 | Standard_Boolean V3d_Viewer::MoreDefinedLights () const { |
49 | return myDefinedLightsIterator.More(); |
50 | } |
51 | void V3d_Viewer::NextDefinedLights () { |
52 | if(!MyDefinedLights.IsEmpty())myDefinedLightsIterator.Next(); |
53 | } |
54 | Handle(V3d_Light) V3d_Viewer::DefinedLight() const { |
55 | return (Handle(V3d_Light)&)(myDefinedLightsIterator.Value());} |
56 | |
57 | void V3d_Viewer::InitDefinedPlanes() { |
58 | myDefinedPlanesIterator.Initialize(MyDefinedPlanes); |
59 | } |
60 | Standard_Boolean V3d_Viewer::MoreDefinedPlanes () const { |
61 | return myDefinedPlanesIterator.More(); |
62 | } |
63 | void V3d_Viewer::NextDefinedPlanes () { |
64 | myDefinedPlanesIterator.Next(); |
65 | } |
66 | Handle(V3d_Plane) V3d_Viewer::DefinedPlane() const { |
67 | return (Handle(V3d_Plane)&)(myDefinedPlanesIterator.Value());} |
68 | |