mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -14,7 +14,9 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <inspector/DFBrowserPane_TPrsStdAISViewer.hxx>
|
||||
#include <inspector/DFBrowserPane_Tools.hxx>
|
||||
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
#include <TPrsStd_AISViewer.hxx>
|
||||
|
||||
#include <QVariant>
|
||||
@@ -23,6 +25,16 @@
|
||||
// function :
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void DFBrowserPane_TPrsStdAISViewer::GetValues (const Handle(TDF_Attribute)&, QList<QVariant>&)
|
||||
void DFBrowserPane_TPrsStdAISViewer::GetValues (const Handle(TDF_Attribute)& theAttribute, QList<QVariant>& theValues)
|
||||
{
|
||||
Handle(TPrsStd_AISViewer) aViewerAttribute = Handle(TPrsStd_AISViewer)::DownCast (theAttribute);
|
||||
if (!aViewerAttribute)
|
||||
return;
|
||||
|
||||
Handle(AIS_InteractiveContext) aContext = aViewerAttribute->GetInteractiveContext();
|
||||
TCollection_AsciiString aPointerInfo = !aContext.IsNull()
|
||||
? DFBrowserPane_Tools::GetPointerInfo (aContext).ToCString() : "";
|
||||
|
||||
theValues << "GetInteractiveContext" << aPointerInfo.ToCString();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user