94 out << t <<
"SetFillColor(" <<
fFillColor <<
");\n";
95 out << t <<
"SetLineColor(" <<
fLineColor <<
");\n";
96 out << t <<
"SetLineWidth(" <<
fLineWidth <<
");\n";
123 for (
Int_t i = 1; i <
N; ++i)
130 std::vector<Float_t>
angles(
N);
131 for (
Int_t i = 0; i <
N; ++i)
135 std::vector<Int_t>
idcs(
N);
144 std::vector<Int_t>::iterator
a,
b;
168 std::vector<Int_t>
hull;
193 ::Warning(
"TEveShape::FindConvexHull()",
"Polygon reduced to %d points. for '%s'.",
202 for (
Int_t i = 0; i <
N; ++i)
228 return up.Dot(
f1.Cross(f2)) < 0;
243 return up.Dot(
f1.Cross(f2)) < 0;
253 std::swap(
box[1],
box[3]);
254 std::swap(
box[5],
box[7]);
265 std::swap(
box[1][0],
box[3][0]);
266 std::swap(
box[1][1],
box[3][1]);
267 std::swap(
box[1][2],
box[3][2]);
268 std::swap(
box[5][0],
box[7][0]);
269 std::swap(
box[5][1],
box[7][1]);
270 std::swap(
box[5][2],
box[7][2]);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
TGLVector3 Cross(const TGLVector3 &v1, const TGLVector3 &v2)
const_iterator begin() const
const_iterator end() const
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Bool_t fCanEditMainTransparency
virtual void SetMainColor(Color_t color)
Set main color of the element.
void SetMainColorPtr(Color_t *color)
virtual void CopyVizParams(const TEveElement *el)
Copy visualization parameters from element el.
static const char * ToString(Bool_t b)
Convert Bool_t to string - kTRUE or kFALSE.
virtual void WriteVizParams(std::ostream &out, const TString &var)
Write-out visual parameters for this object.
virtual void PaintStandard(TObject *id)
Paint object – a generic implementation for EVE elements.
Abstract base-class for 2D/3D shapes.
~TEveShape() override
Destructor.
void SetMainColor(Color_t color) override
Set main color.
void WriteVizParams(std::ostream &out, const TString &var) override
Write visualization parameters.
TEveShape(const TEveShape &)=delete
static void CheckAndFixBoxOrientationFv(Float_t box[8][3])
Make sure box orientation is consistent with standard arrangement.
static void CheckAndFixBoxOrientationEv(TEveVector box[8])
Make sure box orientation is consistent with standard arrangement.
std::vector< TEveVector2 > vVector2_t
void CopyVizParams(const TEveElement *el) override
Copy visualization parameters from element el.
static Int_t FindConvexHull(const vVector2_t &pin, vVector2_t &pout, TEveElement *caller=nullptr)
Determines the convex-hull of points in pin.
void Paint(Option_t *option="") override
Paint this object. Only direct rendering is supported.
static Bool_t IsBoxOrientationConsistentEv(const TEveVector box[8])
Checks if the first face normal is pointing into the other direction as the vector pointing towards t...
static Bool_t IsBoxOrientationConsistentFv(const Float_t box[8][3])
Checks if the first face normal is pointing into the other direction as the vector pointing towards t...
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
Sort the n elements of the array a of generic templated type Element.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.