View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0003231 | ParaView | (No Category) | public | 2006-05-15 11:27 | 2006-08-18 08:51 | ||||
Reporter | System Admin | ||||||||
Assigned To | Clinton Stimpson | ||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003231: Camera properties do not work | ||||||||
Description | This does not work: QList<QVariant> cameraPosition; cameraPosition << x << y << z; QList<QVariant> cameraFocalPoint; cameraFocalPoint << 0.0 << 0.0 << 0.0; QList<QVariant> cameraViewUp; if (z == 0.0) { cameraViewUp << 0.0 << 0.0 << 1.0; } else { cameraViewUp << 0.0 << 1.0 << 0.0; } pqSMAdaptor::setMultipleElementProperty(rm, rm->GetProperty("CameraFocalPoint"), cameraFocalPoint); pqSMAdaptor::setMultipleElementProperty(rm, rm->GetProperty("CameraPosition"), cameraPosition); pqSMAdaptor::setMultipleElementProperty(rm, rm->GetProperty("CameraViewUp"), cameraViewUp); rm->UpdateVTKObjects(); While this works: vtkCamera* cam = rm->GetRenderer()->GetActiveCamera(); cam->SetFocalPoint(0, 0, 0); cam->SetPosition(x, y, z); if (z == 0.0) { cam->SetViewUp(0, 0, 1); } else { cam->SetViewUp(0, 1, 0); } | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Topic Name | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0004691) Clinton Stimpson (developer) 2006-08-18 08:51 |
Whatever it was, it works now. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-06-16 13:09 | Zack Galbreath | Category | => (No Category) |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |