|
Last change
on this file since 242 was 233, checked in by barrand, 19 years ago |
|
|
-
Property svn:eol-style
set to
native
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #ifndef G4Lab_TrajectoryAccessor_h
|
|---|
| 2 | #define G4Lab_TrajectoryAccessor_h
|
|---|
| 3 |
|
|---|
| 4 | // Inheritance :
|
|---|
| 5 | #include <OnX/Inventor/InventorAccessor.h>
|
|---|
| 6 |
|
|---|
| 7 | class SoGroup;
|
|---|
| 8 | class SoSeparator;
|
|---|
| 9 | class SoCoordinate3;
|
|---|
| 10 | class SbName;
|
|---|
| 11 | class SbVec3f;
|
|---|
| 12 | class SbColor;
|
|---|
| 13 | class IOut;
|
|---|
| 14 |
|
|---|
| 15 | namespace G4Lab {
|
|---|
| 16 |
|
|---|
| 17 | class TrajectoryAccessor : public OnX::InventorAccessor {
|
|---|
| 18 | public: //Slash::Data::IAccessor
|
|---|
| 19 | virtual std::string name() const;
|
|---|
| 20 | virtual Slash::Data::IIterator* iterator();
|
|---|
| 21 | virtual Slash::Core::IValue* findValue(Slash::Data::IAccessor::Data,const std::string&,void*);
|
|---|
| 22 | public: //Slash::Data::IVisualizer
|
|---|
| 23 | virtual void beginVisualize();
|
|---|
| 24 | virtual void visualize(Slash::Data::IAccessor::Data,void*);
|
|---|
| 25 | virtual void endVisualize();
|
|---|
| 26 | public:
|
|---|
| 27 | TrajectoryAccessor(Slash::Core::ISession&);
|
|---|
| 28 | virtual ~TrajectoryAccessor();
|
|---|
| 29 | private:
|
|---|
| 30 | void addPolyline(SoGroup*,const SbName&,
|
|---|
| 31 | int,SbVec3f*,const SbColor&,const SbColor&,IOut&);
|
|---|
| 32 | bool isG4LabTrajectory();
|
|---|
| 33 | private:
|
|---|
| 34 | std::string fType;
|
|---|
| 35 | std::string fModeling;
|
|---|
| 36 | bool fG4Lab;
|
|---|
| 37 | SoSeparator* fSeparator;
|
|---|
| 38 | SoCoordinate3* fCoordinate;
|
|---|
| 39 | int fIndex;
|
|---|
| 40 | };
|
|---|
| 41 |
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.