StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TPolyLineShape Class Reference
Inheritance diagram for TPolyLineShape:

Public Member Functions

 TPolyLineShape ()
 to be documented
 
 TPolyLineShape (TPoints3DABC *points, Option_t *option="P")
 fShape = new TTUBE("tube","tube","void",0.5,0.5);
 
virtual ~TPolyLineShape ()
 to be documented
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *opt="")
 to be documented
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 forward the ExecuteEvent call to the decorated object
 
virtual TShape * GetConnection () const
 
virtual Color_t GetColorAttribute () const
 to be documented
 
virtual const char * GetName () const
 forward the GetName call to the decorated object
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 forward the GetObjectInfo call to the decorated object
 
virtual Size_t GetSizeAttribute () const
 to be documented
 
virtual Style_t GetStyleAttribute () const
 to be documented
 
virtual const char * GetTitle () const
 forward the GetObjectInfo call to the decorated object
 
virtual TPoints3DABC * GetMarker () const
 
virtual TPoints3DABC * GetPoints () const
 
virtual TShape * GetShape () const
 
virtual Bool_t GetSmooth () const
 
virtual Float_t GetWidthFactor () const
 
virtual void PaintNode (Float_t *start, Float_t *end, Option_t *option)
 
virtual void Paint (Option_t *opt)
 to be documented
 
virtual void Paint3d (Option_t *opt)
 to be documented
 
virtual void PaintX3DLine (Option_t *opt="")
 to be documented
 
virtual void PaintX3DMarker (Option_t *opt="")
 to be documented
 
virtual void PaintPoints (Int_t n, Float_t *p=0, Option_t *opt="")
 Draw this 3-D polyline with new coordinates.
 
virtual void PaintPolyMarker (Int_t n, Float_t *p=0, Marker_t m=0, Option_t *opt="")
 Paint polymarker in CurrentPad World coordinates.
 
virtual Color_t SetColorAttribute (Color_t color)
 to be documented
 
virtual Size_t SetSizeAttribute (Size_t size)
 to be documented
 
virtual Int_t SetConnection (EShapeTypes connection=kBrik)
 to be documented
 
virtual void SetShape (TShape *shape)
 to be documented
 
virtual void SetSmooth (Bool_t smooth=kTRUE)
 
virtual Style_t SetStyleAttribute (Style_t style)
 
virtual void SetWidthFactor (Float_t fact=1.0)
 
virtual Int_t Size () const
 to be documented
 
virtual void Sizeof3D () const
 Return total X3D size of this shape with its attributes.
 

Static Public Member Functions

static Double_t * Gyrot (Double_t *dirc, Double_t cosang, Double_t sinang, Double_t trans[3][3])
 
static Float_t Product (Float_t *v1, Float_t *v2, Int_t ndim=3)
 to be documented
 
static Double_t Product (Double_t *v1, Double_t *v2, Int_t ndim=3)
 to be documented
 

Protected Member Functions

virtual void Create ()
 the X3D buffer sizes More...
 
virtual Size3D * CreateX3DSize (Bool_t marker=kFALSE)
 to be documented
 
virtual void SetConnection (TShape *connection)
 
virtual Int_t PointDistancetoPrimitive (Int_t px, Int_t py)
 

Protected Attributes

Bool_t fPointFlag
 
Bool_t fLineFlag
 
EShapeTypes fShapeType
 
TShape * fShape
 
TShape * fConnection
 
TPoints3DABC * fPoints
 
Float_t fWidthFactor
 
Bool_t fHasDrawn
 
Bool_t fSmooth
 
Size3D * fSizeX3D
 

Detailed Description

Definition at line 23 of file TPolyLineShape.h.

Member Function Documentation

void TPolyLineShape::Create ( )
protectedvirtual

the X3D buffer sizes

to be documented

Definition at line 135 of file TPolyLineShape.cxx.

Referenced by Draw(), Paint3d(), and TPolyLineShape().

Int_t TPolyLineShape::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
virtual

Compute distance from point px,py to a 3-D polyline.

Compute the closest distance of approach from point px,py to each segment of the polyline. Returns when the distance found is below DistanceMaximum. The distance is computed in pixels units.

Definition at line 199 of file TPolyLineShape.cxx.

References PointDistancetoPrimitive().

Double_t * TPolyLineShape::Gyrot ( Double_t *  dirc,
Double_t  cosang,
Double_t  sinang,
Double_t  trans[3][3] 
)
static

  • *
  • call gyrot(dirc,angp,trans,ntrans) vp 880722 *
  • revised vp 921009 *
  • revised (f->c++) vf 981006 *
  • routine for filling rotation transformation matrix *
  • from axis and rotation angle around *
  • *
  • arguments: *
  • dirc direct cosinuses (may be not normalised) *
  • cosang, sinang - cos and sin of the rotation angle *
  • tranz rotation & shift matrix 3*3 (input/output) *
  • ------------------------------------------------------------— *
  • This code is provided by Victor Perevoztchikov *

Definition at line 680 of file TPolyLineShape.cxx.

Referenced by PaintNode().

void TPolyLineShape::PaintNode ( Float_t *  start,
Float_t *  end,
Option_t *  option 
)
virtual

Double_t *start - coordinate of the start point of the current segment Double_t *end - coordinate of the end point of the current segment

Definition at line 321 of file TPolyLineShape.cxx.

References Gyrot(), TVolume::PaintNodePosition(), Product(), and TVolume::SetVisibility().

Referenced by Paint3d().

Int_t TPolyLineShape::PointDistancetoPrimitive ( Int_t  px,
Int_t  py 
)
protectedvirtual

Compute distance from point px,py to a 3-D points.

Compute the closest distance of approach from point px,py to each segment of the polyline. Returns when the distance found is below DistanceMaximum. The distance is computed in pixels units.

Definition at line 217 of file TPolyLineShape.cxx.

Referenced by DistancetoPrimitive().

Style_t TPolyLineShape::SetStyleAttribute ( Style_t  style)
virtual

Set new style for this line. Returns: previous value of the line style

Definition at line 746 of file TPolyLineShape.cxx.

References GetStyleAttribute().


The documentation for this class was generated from the following files: