Graphic container for RDrawable
-s.
- Authors
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
- Date
- 2017-07-06
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
Definition at line 25 of file RPad.hxx.
|
| RPad ()=default |
| Create a topmost, non-paintable pad.
|
|
| RPad (RPadBase *parent, const RPadPos &pos, const RPadExtent &size) |
| Create a child pad.
|
|
virtual | ~RPad () |
| Destructor to have a vtable.
|
|
RAttrLine & | AttrLine () |
|
const RAttrLine & | GetAttrLine () const |
|
const RCanvas * | GetCanvas () const override |
| Access to the top-most canvas (const version).
|
|
RCanvas * | GetCanvas () override |
| Access to the top-most canvas (non-const version).
|
|
RPadBase * | GetParent () |
| Access to the parent pad (non-const version).
|
|
const RPadBase * | GetParent () const |
| Access to the parent pad (const version).
|
|
const RPadPos & | GetPos () const |
| Get the position of the pad in parent (!) coordinates.
|
|
const RPadExtent & | GetSize () const |
| Get the size of the pad in parent (!) coordinates.
|
|
std::array< RPadLength::Normal, 2 > | PixelsToNormal (const std::array< RPadLength::Pixel, 2 > &pos) const override |
| Convert a Pixel position to Canvas-normalized positions.
|
|
RPad & | SetAttrLine (const RAttrLine &attr) |
|
void | SetPos (const RPadPos &p) |
| Set position.
|
|
void | SetSize (const RPadExtent &sz) |
| Set the size of the pad in parent (!) coordinates.
|
|
std::array< RPadLength::Normal, 2 > | ToNormal (const RPadPos &pos) const |
| Convert a RPadPos to [x, y] of normalized coordinates.
|
|
virtual | ~RPadBase () |
|
void | AssignAutoColors () |
| Method collect existing colors and assign new values if required.
|
|
std::vector< std::vector< std::shared_ptr< RPad > > > | Divide (int nHoriz, int nVert, const RPadExtent &padding={}) |
| Divide this pad into a grid of subpads with padding in between.
|
|
template<class T , class... ARGS> |
auto | Draw (ARGS... args) |
| Create drawable of specified class T.
|
|
template<class T , class... ARGS> |
auto | Draw (const std::shared_ptr< T > &what, ARGS... args) |
| Add object to be painted.
|
|
auto | Draw (std::shared_ptr< RDrawable > &&drawable) |
| Add existing drawable instance to canvas.
|
|
const RPadBase * | FindPadForPrimitiveWithDisplayId (const std::string &display_id) const |
| Find subpad which contains primitive with given display id.
|
|
std::shared_ptr< RDrawable > | FindPrimitive (const std::string &id) const |
| Find primitive with specified id.
|
|
std::shared_ptr< RDrawable > | FindPrimitiveByDisplayId (const std::string &display_id) const |
| Find primitive with unique id, produce for RDisplayItem Such id used for client-server identification of objects.
|
|
RPadUserAxisBase * | GetAxis (size_t dimension) const |
| Get a pad axis from the RFrame.
|
|
std::shared_ptr< RFrame > | GetFrame () |
| Get a frame object if exists.
|
|
const std::shared_ptr< RFrame > | GetFrame () const |
| Get a frame object if exists.
|
|
RPadUserAxisBase * | GetOrCreateAxis (size_t dimension) |
| Get a pad axis from the RFrame.
|
|
std::shared_ptr< RFrame > | GetOrCreateFrame () |
| Get a frame object for the pad.
|
|
std::shared_ptr< RDrawable > | GetPrimitive (unsigned num) const |
| returns primitive of given number
|
|
auto | GetPrimitives () const |
| Get all primitives contained in the pad.
|
|
unsigned | NumPrimitives () const |
| returns number of primitives in the pad
|
|
bool | Remove (const std::shared_ptr< RDrawable > &drawable) |
| Remove drawable from list of primitives.
|
|
bool | Remove (const std::string &id) |
| Remove an object from the list of primitives.
|
|
bool | RemoveAt (unsigned indx) |
| Remove drawable at specified position.
|
|
void | SetAllAxisAutoBounds () |
| Set the range of an axis as bound kind and bound (up or down).
|
|
void | SetAllAxisBound (const std::vector< BoundKindAndValue > &vecBoundAndKind) |
| Set the range of an axis as bound kind and bound (up or down).
|
|
void | SetAllAxisBounds (const std::vector< std::array< double, 2 > > &vecBeginAndEnd) |
| Set the range of an axis as bound kind and bound (up or down).
|
|
void | SetAxisAutoBounds (int dimension) |
| Set the range of an axis as bound kind and bound (up or down).
|
|
void | SetAxisBound (int dimension, RPadUserAxisBase::EAxisBoundsKind boundsKind, double bound) |
| Set the range of an axis as bound kind and bound (up or down).
|
|
void | SetAxisBounds (int dimension, double begin, double end) |
| Set the range of an axis as begin, end.
|
|
std::array< RPadLength::Normal, 2 > | UserToNormal (const std::array< RPadLength::User, 2 > &pos) const |
| Convert user coordinates to normal coordinates.
|
|
void | UseStyle (const std::shared_ptr< RStyle > &style) override |
| Use provided style for pad and all primitives inside.
|
|
void | Wipe () |
| Wipe the pad by clearing the list of primitives.
|
|
| RDrawable (const std::string &type) |
|
virtual | ~RDrawable () |
|
void | ClearStyle () |
|
const std::string & | GetCssClass () const |
|
const std::string & | GetCssType () const |
|
const std::string & | GetId () const |
|
void | SetCssClass (const std::string &cl) |
|
void | SetId (const std::string &id) |
|