177 TAttMarker::TAttMarker()
179 if (!gStyle) {fMarkerColor=1; fMarkerStyle=1; fMarkerSize=1;
return;}
180 fMarkerColor = gStyle->GetMarkerColor();
181 fMarkerStyle = gStyle->GetMarkerStyle();
182 fMarkerSize = gStyle->GetMarkerSize();
193 TAttMarker::TAttMarker(Color_t color, Style_t style, Size_t msize)
195 fMarkerColor = color;
197 fMarkerStyle = style;
203 TAttMarker::~TAttMarker()
210 void TAttMarker::Copy(TAttMarker &attmarker)
const
212 attmarker.fMarkerColor = fMarkerColor;
213 attmarker.fMarkerStyle = fMarkerStyle;
214 attmarker.fMarkerSize = fMarkerSize;
220 void TAttMarker::Modify()
223 if (!gPad->IsBatch()) {
224 gVirtualX->SetMarkerColor(fMarkerColor);
225 gVirtualX->SetMarkerSize (fMarkerSize);
226 gVirtualX->SetMarkerStyle(fMarkerStyle);
229 gPad->SetAttMarkerPS(fMarkerColor,fMarkerStyle,fMarkerSize);
235 void TAttMarker::ResetAttMarker(Option_t *)
245 void TAttMarker::SaveMarkerAttributes(std::ostream &out,
const char *name, Int_t coldef, Int_t stydef, Int_t sizdef)
247 if (fMarkerColor != coldef) {
248 if (fMarkerColor > 228) {
249 TColor::SaveColor(out, fMarkerColor);
250 out<<
" "<<name<<
"->SetMarkerColor(ci);" << std::endl;
252 out<<
" "<<name<<
"->SetMarkerColor("<<fMarkerColor<<
");"<<std::endl;
254 if (fMarkerStyle != stydef) {
255 out<<
" "<<name<<
"->SetMarkerStyle("<<fMarkerStyle<<
");"<<std::endl;
257 if (fMarkerSize != sizdef) {
258 out<<
" "<<name<<
"->SetMarkerSize("<<fMarkerSize<<
");"<<std::endl;
265 void TAttMarker::SetMarkerAttributes()
267 TVirtualPadEditor::UpdateMarkerAttributes(fMarkerColor,fMarkerStyle,fMarkerSize);
274 void TAttMarker::SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
276 fMarkerColor = TColor::GetColorTransparent(mcolor, malpha);