MantisBT - ParaView | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013087 | ParaView | Feature | public | 2012-04-13 09:59 | 2015-01-11 08:35 |
| Reporter | Ian Curington | ||||
| Assigned To | Utkarsh Ayachit | ||||
| Priority | high | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | 3.14.1 | ||||
| Target Version | 4.0 | Fixed in Version | 3.98.0 | ||
| Project | ParaViewPro | ||||
| Topic Name | 13087_extend_representation_api | ||||
| Type | usability | ||||
| Summary | 0013087: Enable mapping PipelineSource with vtkActor names with 1-line patch adding inspector | ||||
| Description | Please urgently add to: ParaView-3.14.0/ParaViewCore/ClientServerCore/vtkGeometryRepresentation.h line 185: vtkPVLODActor* GetActor(){return Actor;} SUMMARY: Request to add inspector routine to vtkGeometryRepresentation class to allow creating mapping of pqPipelineSource with vtkActor (from vtkRenderWindow) instances necessary in any 3D scene graph capturing Plugin. Such mapping allows captured scene graph (VTK, X3D, PDF3D, etc) to include meaningful originating Pipeline names. DESCRIPTION: To export ParaView scene to 3D PDF or other similar full scene-graph systems with properly mapped names of pipeline sources with model tree names, mapping between pqPipelineSource and vtkActor (from vtkRenderWindow) instances needs to be created in the exporting plugin. One-line Inspector routine is added to the class to enable our plugin to calculate which vtkActor objects are represented by which pqPipelineSource objects, which is used later, to set model tree names, during exporting vtkRenderWindow's content to 3D PDF. This patch is very important to us because 3D pdf files we generate, with correct model tree names, are much more user friendly and allow to user to exactly know which path of 3D scene was exported from which part of ParaView scene. EXAMPLE CODE SNIPPET of USE, in PLUGIN: // // This code snippet describes how ACTORS NAME PATCH is used in // PDF3D ParaView Plugin. // // Following code retrieves list of pipeline sources currently // managed by ParaView's Server Manager and for each: // // 1. Retrieves coresponding data representation used for it's // displaying, // 2. If pipeline source is visible (i.e. data representation is // visible), it saves mapping (routine AddNameMapping) between // pipeline source's name and vtkActor's instance object which // is added to vtkRenderWindow. // // get reference to application's object pqApplicationCore* application = pqApplicationCore::instance(); // get reference to server manager model's object pqServerManagerModel* server_manager_model = application->getServerManagerModel(); // get all sources QList<pqPipelineSource*> sources = server_manager_model->findItems<pqPipelineSource*>(); // pass through all sources and initialize name mapping int i; for(i = 0; i < sources.size(); i++) { // get source pqPipelineSource* source = sources.at(i); // get representation pqDataRepresentation* representation = source->getRepresentation(active_view); if(representation == NULL || !representation->isVisible()) continue; // get client side representation object - composite representation vtkPVCompositeRepresentation* composite_representation = dynamic_cast<vtkPVCompositeRepresentation*>(representation->getProxy()->GetClientSideObject()); if(composite_representation != NULL) { // get currently active geometry representation and set name for its appropriate actor vtkGeometryRepresentation* active_representation = dynamic_cast<vtkGeometryRepresentation*>(composite_representation->GetActiveRepresentation()); if(active_representation != NULL) AddNameMapping(active_representation->GetActor(), source->getSMName().toAscii().data()); } } | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-04-13 09:59 | Ian Curington | New Issue | |||
| 2012-04-13 11:34 | Ian Curington | Note Added: 0028477 | |||
| 2012-04-23 10:33 | Utkarsh Ayachit | Assigned To | => Utkarsh Ayachit | ||
| 2012-04-23 10:33 | Utkarsh Ayachit | Status | backlog => todo | ||
| 2012-04-23 10:33 | Utkarsh Ayachit | Category | (No Category) => Feature | ||
| 2012-04-23 10:41 | Utkarsh Ayachit | Project | TBD => ParaViewPro | ||
| 2012-07-19 06:37 | Ian Curington | Note Added: 0028840 | |||
| 2012-08-17 15:39 | Ian Curington | Note Added: 0029027 | |||
| 2012-10-18 14:11 | Utkarsh Ayachit | Target Version | => 4.0 | ||
| 2012-10-24 11:14 | Utkarsh Ayachit | Topic Name | => 13534_fix_clip_planes | ||
| 2012-10-24 11:14 | Utkarsh Ayachit | Note Added: 0029500 | |||
| 2012-10-24 11:14 | Utkarsh Ayachit | Status | todo => gatekeeper review | ||
| 2012-10-24 11:14 | Utkarsh Ayachit | Fixed in Version | => git-next | ||
| 2012-10-24 11:14 | Utkarsh Ayachit | Resolution | open => fixed | ||
| 2012-10-26 08:05 | Ian Curington | Note Added: 0029523 | |||
| 2012-10-26 10:00 | Utkarsh Ayachit | Status | gatekeeper review => backlog | ||
| 2012-10-26 10:00 | Utkarsh Ayachit | Resolution | fixed => reopened | ||
| 2012-10-26 10:06 | Utkarsh Ayachit | Topic Name | 13534_fix_clip_planes => 13087_extend_representation_api | ||
| 2012-10-26 10:06 | Utkarsh Ayachit | Note Added: 0029524 | |||
| 2012-10-26 10:06 | Utkarsh Ayachit | Status | backlog => gatekeeper review | ||
| 2012-10-26 10:06 | Utkarsh Ayachit | Resolution | reopened => fixed | ||
| 2012-10-26 10:10 | Ian Curington | Note Added: 0029525 | |||
| 2012-10-26 10:11 | Utkarsh Ayachit | Note Added: 0029526 | |||
| 2012-10-29 10:50 | Utkarsh Ayachit | Fixed in Version | git-next => git-master | ||
| 2012-10-29 10:50 | Utkarsh Ayachit | Status | gatekeeper review => customer review | ||
| 2012-10-29 10:50 | Utkarsh Ayachit | Note Added: 0029546 | |||
| 2012-10-29 17:04 | Utkarsh Ayachit | Fixed in Version | git-master => 3.98.0 | ||
| 2013-01-17 19:17 | Alan Scott | Note Added: 0030180 | |||
| 2013-01-17 19:17 | Alan Scott | Status | customer review => closed | ||
| 2015-01-11 08:34 | Utkarsh Ayachit | Source_changeset_attached | => ParaView master 77ee8f9b | ||
| 2015-01-11 08:35 | Utkarsh Ayachit | Source_changeset_attached | => ParaView master 16e0bcfd | ||
| 2015-01-11 08:35 | Utkarsh Ayachit | Source_changeset_attached | => ParaView master e55d00d6 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||