library: libTable #include "TTablePoints.h"

# TTablePoints

class description - source file - inheritance tree (.pdf)

## class TTablePoints : public TPoints3DABC

| Inheritance Chart:
`TObject`
| <- | `TPoints3DABC`
| <- | `TTablePoints` |
<- |
`TTable3Points` |

This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.

        protected:

          virtual void SetTablePointer(void* table)

        public:

                            ~TTablePoints()
             static TClass* Class()
              virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
              virtual Int_t GetLastPosition() const
          virtual Option_t* GetOption() const
              virtual void* GetTable()
            virtual Float_t GetX(Int_t idx) const
            virtual Float_t GetY(Int_t idx) const
            virtual Float_t GetZ(Int_t idx) const
              virtual Int_t Indx(Int_t sortedIndx) const
            virtual TClass* IsA() const
              virtual Int_t SetLastPosition(Int_t idx)
               virtual void SetOption(Option_t*)
              virtual Int_t SetPoint(Int_t, Float_t, Float_t, Float_t)
              virtual Int_t SetPoints(Int_t, Float_t*, Option_t*)
               virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual Int_t Size() const
               virtual void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          TTableSorter* fTableSorter
            const void* fKey          pointer to key value to select rows
                  Int_t fFirstRow     The first row to take in account
                  Int_t fSize
                  void* fRows         Pointer the first row of the STAF table

## Class Description

       Defines the TTable as an element of "event" geometry

      +SEQ,TTablePoints.
      +SEQ,T<your_table_name_here>.

      class T<your_table_name_here>_Points : public TTablePoints
      {
        public:
           T<your_table_name_here>_Points(TTableSorter *sorter,const void *key,Option_t *opt):
                    TTablePoints(sorter,key,opt){}
           virtual  ~T<your_table_name_here>_Points(){} // default destructor
           virtual Float_t GetX(Int_t indx) { return ((<your_table_name_here>_st *)fRows)[Indx(idx)]-> <x>;}
           virtual Float_t GetY(Int_t indx) { return ((<your_table_name_here>_st *)fRows)[Indx(idx)]-> <y>;}
           virtual Float_t GetZ(Int_t indx) { return ((<your_table_name_here>_st *)fRows)[Indx(idx)]-> <z>;}
      };

Int_t DistancetoPrimitive(Int_t /*px*/, Int_t /*py*/)

    *-*-*-*-*-*-*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.
    *-*
    *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

### Inline Functions

                   void ~TTablePoints()
                   void SetTablePointer(void* table)
                  Int_t GetLastPosition() const
                Float_t GetX(Int_t idx) const
                Float_t GetY(Int_t idx) const
                Float_t GetZ(Int_t idx) const
                  void* GetTable()
              Option_t* GetOption() const
                  Int_t Indx(Int_t sortedIndx) const
                  Int_t SetLastPosition(Int_t idx)
                   void SetOption(Option_t*)
                  Int_t SetPoint(Int_t, Float_t, Float_t, Float_t)
                  Int_t SetPoints(Int_t, Float_t*, Option_t*)
                  Int_t Size() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)

Author: Valery Fine 14/05/99 (E-mail: fine@bnl.gov)
Last update: root/star:$Name: $:$Id: TTablePoints.cxx,v 1.3 2003/01/27 20:41:37 brun Exp $