iRoCS Toolbox  1.1.0
NucleusMarkerOrthoViewRenderer.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * This file belongs to the iRoCS Toolbox.
4  *
5  * Copyright (C) 2015 Thorsten Falk
6  *
7  * Image Analysis Lab, University of Freiburg, Germany
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  **************************************************************************/
24 
25 #ifndef NUCLEUSMARKERORTHOVIEWRENDERER_HH
26 #define NUCLEUSMARKERORTHOVIEWRENDERER_HH
27 
28 #ifdef HAVE_CONFIG_H
29 #include <config.hh>
30 #endif
31 
33 
34 class NucleusMarker;
35 class OrthoViewWidget;
36 
37 /*======================================================================*/
43 /*======================================================================*/
46 {
47 
48 public:
49 
54 
55 /*======================================================================*/
61 /*======================================================================*/
62  virtual MarkerOrthoViewRendererCache *clone() const;
63 
64 /*======================================================================*/
75 /*======================================================================*/
76  virtual void render(QPainter *painter) const;
77 
78 /*======================================================================*/
84 /*======================================================================*/
85  void setMitotic(bool mitotic);
86 
87 /*======================================================================*/
94 /*======================================================================*/
95  void setPredictedMitotic(bool predictedMitotic);
96 
97 /*======================================================================*/
103 /*======================================================================*/
104  void setContinuity(int continuity);
105 
106 /*======================================================================*/
112 /*======================================================================*/
113  void setPredictedContinuity(int predictedContinuity);
114 
115 protected:
116 
119 
120 };
121 
122 
124 {
125 
126 Q_OBJECT
127 
128 public:
129 
132  NucleusMarkerOrthoViewRenderer const &renderer);
134 
135  virtual MarkerRenderer *clone() const;
136 
137  virtual void render(
138  QXmlStreamWriter &svgStream,
139  blitz::TinyVector<double,3> const &shapePx,
140  blitz::TinyVector<double,3> const &lowerBoundUm,
141  blitz::TinyVector<double,3> const &upperBoundUm,
142  std::string const &font, double fontSizePt,
143  iRoCS::ProgressReporter *pr = NULL) const;
144 
145  virtual void userInteractionEvent(UserInteractionEvent *event);
146 
147 public slots:
148 
149 /*======================================================================*/
166 /*======================================================================*/
167  virtual void updateCache(int direction) const;
168 
169 };
170 
171 #endif
virtual MarkerOrthoViewRendererCache * clone() const
Get a new copy of this cache.
void setContinuity(int continuity)
Set continuity.
The MarkerOrthoViewRendererCache class specifies the interface to store and replay marker geometry in...
virtual void render(QPainter *painter) const
Render the content of the cache into the given painter.
void setPredictedContinuity(int predictedContinuity)
Set predicted continuity.
void setMitotic(bool mitotic)
Set mitotic flag.
void setPredictedMitotic(bool predictedMitotic)
Set predictedMitotic flag.
The SHSurfaceMarkerOrthoViewRendererCache class stores and replays spherical harmonic marker geometry...