1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0029018: Documentation - Provide user guide for Qt browser

Documentation is added in a new "Inspector" page of "User Guides".
Inspector plugins has some improvements by the documentation needs.
New DRAW scripts are implemented for 'tinspector' command.
This commit is contained in:
nds
2017-08-28 12:29:29 +03:00
committed by bugmaster
parent 434098193a
commit d2c909178e
117 changed files with 3166 additions and 463 deletions

View File

@@ -30,11 +30,6 @@
DFBrowserPane_TPrsStdAISPresentation::DFBrowserPane_TPrsStdAISPresentation()
: DFBrowserPane_AttributePane()
{
getPaneModel()->SetColumnCount (2);
QList<QVariant> theValues;
theValues << "Method" << "Value";
getPaneModel()->SetHeaderValues (theValues, Qt::Horizontal);
}
// =======================================================================
@@ -57,10 +52,15 @@ void DFBrowserPane_TPrsStdAISPresentation::GetValues (const Handle(TDF_Attribute
if (anAttribute.IsNull())
return;
Handle(AIS_InteractiveObject) anIO = anAttribute->GetAIS();
theValues << "GetDriverGUID" << ""//DFBrowserPane_Tools::ToString (anAttribute->GetDriverGUID())
char aStr[256];
anAttribute->GetDriverGUID().ToCString(aStr);
TCollection_AsciiString aString(aStr);
theValues << "GetDriverGUID" << DFBrowserPane_Tools::ToString (aString)
<< "GetAIS" << (anIO.IsNull() ? "Null" : anAttribute->DynamicType()->Name())
<< "IsDisplayed" << DFBrowserPane_Tools::BoolToStr (anAttribute->IsDisplayed())
<< "GetContext()" << (!anIO->GetContext().IsNull() ?
<< "GetContext()" << ((!anIO.IsNull() && !anIO->GetContext().IsNull()) ?
DFBrowserPane_Tools::GetPointerInfo (anIO->GetContext()).ToCString() : "")
<< "HasOwnMaterial" << DFBrowserPane_Tools::BoolToStr (anAttribute->HasOwnMaterial())
<< "Material" << (anAttribute->HasOwnMaterial() ?