27 ClassImp(TGHorizontal3DLine);
28 ClassImp(TGVertical3DLine);
33 TGHorizontal3DLine::TGHorizontal3DLine(
const TGWindow *p, UInt_t w, UInt_t h,
34 UInt_t options, Pixel_t back) :
35 TGFrame(p, w, h, options, back)
38 fEditDisabled = kEditDisableHeight;
44 TGVertical3DLine::TGVertical3DLine(
const TGWindow *p, UInt_t w, UInt_t h,
45 UInt_t options, Pixel_t back) :
46 TGFrame(p, w, h, options, back)
49 fEditDisabled = kEditDisableWidth;
55 void TGHorizontal3DLine::SavePrimitive(std::ostream &out, Option_t *option )
57 if (fBackground != GetDefaultFrameBackground()) SaveUserColor(out, option);
59 out <<
" TGHorizontal3DLine *";
60 out << GetName() <<
" = new TGHorizontal3DLine(" << fParent->GetName()
61 <<
"," << GetWidth() <<
"," << GetHeight();
63 if (fBackground == GetDefaultFrameBackground()) {
65 out <<
");" << std::endl;
67 out <<
"," << GetOptionString() <<
");" << std::endl;
70 out <<
"," << GetOptionString() <<
",ucolor);" << std::endl;
72 if (option && strstr(option,
"keep_names"))
73 out <<
" " << GetName() <<
"->SetName(\"" << GetName() <<
"\");" << std::endl;
79 void TGVertical3DLine::SavePrimitive(std::ostream &out, Option_t *option )
81 if (fBackground != GetDefaultFrameBackground()) SaveUserColor(out, option);
83 out <<
" TGVertical3DLine *";
84 out << GetName() <<
" = new TGVertical3DLine(" << fParent->GetName()
85 <<
"," << GetWidth() <<
"," << GetHeight();
87 if (fBackground == GetDefaultFrameBackground()) {
89 out <<
");" << std::endl;
91 out <<
"," << GetOptionString() <<
");" << std::endl;
94 out <<
"," << GetOptionString() <<
",ucolor);" << std::endl;
96 if (option && strstr(option,
"keep_names"))
97 out <<
" " << GetName() <<
"->SetName(\"" << GetName() <<
"\");" << std::endl;