EFiterType

EMode

EProximityAlgo

FWGeometryTableView

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
#ifndef Fireworks_Core_FWGeometryTableView_h
#define Fireworks_Core_FWGeometryTableView_h
// -*- C++ -*-
//
// Package:     Core
// Class  :     FWGeometryTableView
//
/**\class FWGeometryTableView FWGeometryTableView.h Fireworks/Core/interface/FWGeometryTableView.h

 Description: [one line class summary]

 Usage:
    <usage>

*/
//
// Original Author:
//         Created:  Wed Jan  4 00:05:38 CET 2012
//

#include "Fireworks/Core/interface/FWGeometryTableViewBase.h"
class FWGeometryTableManagerBase;
class FWGeometryTableManager;
class FWGUIValidatingTextEntry;
class FWGeoMaterialValidator;
class FWEveDetectorGeo;

class FWGeometryTableView : public FWGeometryTableViewBase {
public:
  enum EMode { kNode, kVolume };
  enum EProximityAlgo { kBBoxCenter, kBBoxSurface };
  enum EFiterType { kFilterMaterialName, kFilterMaterialTitle, kFilterShapeName, kFilterShapeClassName };

public:
  FWGeometryTableView(TEveWindowSlot* iParent, FWColorManager* colMng);
  ~FWGeometryTableView() override;
  void populateController(ViewerParameterGUI&) const override;
  FWGeometryTableManagerBase* getTableManager() override;

  void filterListCallback();
  void filterTextEntryCallback();
  void updateFilter(std::string&);

  bool getVolumeMode() const { return m_mode.value() == kVolume; }
  std::string getFilter() const { return m_filter.value(); }
  int getAutoExpand() const { return m_autoExpand.value(); }
  int getVisLevel() const { return m_visLevel.value(); }
  bool getIgnoreVisLevelWhenFilter() const { return m_visLevelFilter.value(); }

  int getFilterType() const { return m_filterType.value(); }

  bool drawTopNode() const { return !m_disableTopNode.value(); }
  void autoExpandCallback();
  void setPath(int, std::string&) override;
  void setFrom(const FWConfiguration&) override;

  // void chosenItem(int);
  void updateVisibilityTopNode();

  void checkRegionOfInterest();
  bool isSelectedByRegion() const { return m_selectRegion.value(); }

protected:
  // virtual void initGeometry(TGeoNode* iGeoTopNode, TObjArray* iVolumes);

private:
  FWGeometryTableView(const FWGeometryTableView&);                   // stop default
  const FWGeometryTableView& operator=(const FWGeometryTableView&);  // stop default

  // ---------- member data --------------------------------
  FWGeometryTableManager* m_tableManager;

  FWGUIValidatingTextEntry* m_filterEntry;
  FWGeoMaterialValidator* m_filterValidator;

#ifndef __CINT__
  FWEnumParameter m_mode;
  FWBoolParameter m_disableTopNode;
  FWLongParameter m_visLevel;

  FWStringParameter m_filter;
  FWEnumParameter m_filterType;
  FWBoolParameter m_visLevelFilter;

  FWBoolParameter m_selectRegion;
  FWDoubleParameter m_regionRadius;
  FWEnumParameter m_proximityAlgo;

  std::shared_ptr<FWParameterSetterBase> m_filterTypeSetter;

#endif

  ClassDefOverride(FWGeometryTableView, 0);
};

#endif