VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Dt3DGreatCircleArcModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace makVrv
15 {
16  class DtGreatCircleArc;
17  class Dt3DGreatCircleArcModelInstanceSegment;
18 
23  {
24  public:
25 
28 
31 
34  virtual void setMaxSubdivisions( int subdivisions );
35 
39  virtual void setPreferredSubdivisionSize( double size );
40 
43  virtual void setHeightScale( double heightScale );
44 
47  virtual bool realize(DtModelDefinition& definition);
48 
49  private:
50 
53 
56 
59 
60  protected:
62 
63  virtual void readMaxSubdivisions( DtModelDefinition &definition );
64  virtual void readDefaultHeightScale( DtModelDefinition &definition );
65  virtual void readPreferredSubdivisionSize( DtModelDefinition &definition );
66  virtual void readDefaultStipple( DtModelDefinition &definition );
67  virtual void readDefaultWidth( DtModelDefinition &definition );
68  virtual void readDefaultColor( DtModelDefinition &definition );
70 
72  virtual Dt3DLineModelInstanceSegmentInterface* createSegment();
73 
75  virtual void updateGeometry();
76 
79  virtual void updateGeometryForVertexBasedSegments();
80 
83  virtual void updateVertexBasedSegmentGeometry( int vtx, osg::Vec3d& origin );
84 
87  virtual void updateGeometryForPercentageBasedSegments();
88 
92  virtual double updatePercentageBasedSegmentGeometry( int segIndex, double startPercent );
93 
95  virtual void updatePercentageBasedSegmentVisibility( int segIndex );
96 
98  virtual void updateAllSegmentAttributes();
99 
101  virtual void updateSegmentAttributes( int seg );
102 
104  Dt3DGreatCircleArcModelInstanceSegment& gcSegment( int i);
105 
107  const Dt3DGreatCircleArcModelInstanceSegment& gcSegment(int i) const;
108 
109  protected:
110 
114  };
115 }
116 
117 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
voidpf uLong int origin
Definition: ioapi.h:42
Helper class to draw a styleable arc segment; generates a geode containing the arc segment geometry...
Definition: Dt3DGreatCircleArcModelInstanceSegment.h:29
voidpf void uLong size
Definition: ioapi.h:39
int myMaxSubdivisions
Definition: Dt3DGreatCircleArcModelInstance.h:112
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
double myHeightScale
Definition: Dt3DGreatCircleArcModelInstance.h:111
Specialized Line Model instance to draw a 3D arc with styleable segments.
Definition: Dt3DGreatCircleArcModelInstance.h:21
Model instance to draw a 3D line with styleable segments.
Definition: Dt3DSegmentedLineModelInstance.h:25
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
double myPreferredSubdivisionSize
Definition: Dt3DGreatCircleArcModelInstance.h:113
Contains makVrv::Dt3DSegmentedLineModelInstance class.
Dt3DLineModelInstanceSegmentInterface is an abstract class providing a common interface for line mode...
Definition: Dt3DLineModelInstanceSegmentInterface.h:30

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)