Re: [Paraview] Cube Axes labels problems in current ParaView sources

2012-02-20 Thread Nenad Vujicic
Hello everyone,

The problem is finally solved. List of steps for adding widget to Cube
Axes Editor Dialog which controls cube axes behavior:

1) Add behavior to vtkCubeAxesRepresentation class and property which
controls it,
2) Add property to
ParaViewCore/ServerImplementation/Resources/views_and_representations.xml
for CubeAxesRepresentation proxy,
3) Add widget to pqCubeAxesEditorDialog.ui and register it with
PropertyManager in pqCubeAxesEditorDialog.cxx.

Thank You all for help!

Best regards,
Nenad.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Cube Axes labels problems in current ParaView sources

2012-01-23 Thread Nenad Vujicic
Hello everyone,

Looks like this was very easy patch (3 lines of code):-). I made it by
adding setting X, Y and Z axes ranges of used vtkCubeAxesActor object
to data ranges at the end of
vtkCubeAxesRepresentation::UpdateBounds(). Aashish, thank You very
much on Your hint! However, I hit another problem. I wanted to add
check box on Edit Cube Axes Properties dialog which should control
which behavior will be used (generate tick labels from original or
scaled / transformed data). However, I couldn't connect it with code I
added in vtkCubeAxesRepresentation class. I couldn't even retrieve
UnscaledTicks property of passed representation in
pqCubeAxesEditorDialog::setRepresentationProxy() routine.

Is adding of 'bool UnscaledTicks' to vtkCubeAxesRepresentation class
enough to have UnscaledTicks property or there is some additional
code I should call? Also, am I on good way of connecting my check-box
with vtkCubeAxesRepresentation? Any comment is highly appreciated:-)!

Best regards,
Nenad.

On Wed, Oct 26, 2011 at 5:57 PM, Aashish Chaudhary
aashish.chaudh...@kitware.com wrote:
 Hi Nenad,

 I looked into the code and the behavior you are seeing is correct. So it is
 not a bug but I think what you are asking is quite logicial.

 Probably I need to put some logic in vtkCubeAxesRepresentation.  I will drop
 another email once I have it working.

 Best,



 On Tue, Oct 18, 2011 at 2:04 PM, Aashish Chaudhary
 aashish.chaudh...@kitware.com wrote:

 Hi Nenad,

 I looked into some but then got distracted. I will try to have a
 solution this week.

 Sorry about the delay.

 Thanks,


 On Tue, Oct 18, 2011 at 6:31 AM, Nenad Vujicic nena...@gmail.com wrote:
  Hello everyone,
 
  Does anyone have idea how to fix vtkCubeAxesActor.cxx so it doesn't
  scale axes ticks too? Also, is this expected behavior or a bug?
 
  Best regards,
  Nenad.
 
  On Mon, Oct 3, 2011 at 7:21 PM, Nenad Vujicic nena...@gmail.com wrote:
  Dear Aashish,
 
  On Mon, Oct 3, 2011 at 6:34 PM, Aashish Chaudhary
  aashish.chaudh...@kitware.com wrote:
  Hi Nenand,
  ...
  I can have a look at it but it may take one or two days before I get
  to it.  How soon you need this?
 
 
 
  Thank You very much for Your response! I'm not in big rush, so it can
  wait few days.
 
  Best regards,
  Nenad.
 
  ___
  Powered by www.kitware.com
 
  Visit other Kitware open-source projects at
  http://www.kitware.com/opensource/opensource.html
 
  Please keep messages on-topic and check the ParaView Wiki at:
  http://paraview.org/Wiki/ParaView
 
  Follow this link to subscribe/unsubscribe:
  http://www.paraview.org/mailman/listinfo/paraview
 



 --
 | Aashish Chaudhary
 | RD Engineer
 | Kitware Inc.
 | www.kitware.com




 --
 | Aashish Chaudhary
 | RD Engineer
 | Kitware Inc.
 | www.kitware.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Cube Axes labels problems in current ParaView sources

2011-10-26 Thread Aashish Chaudhary
Hi Nenad,

I looked into the code and the behavior you are seeing is correct. So it is
not a bug but I think what you are asking is quite logicial.

Probably I need to put some logic in vtkCubeAxesRepresentation.  I will drop
another email once I have it working.

Best,



On Tue, Oct 18, 2011 at 2:04 PM, Aashish Chaudhary 
aashish.chaudh...@kitware.com wrote:

 Hi Nenad,

 I looked into some but then got distracted. I will try to have a
 solution this week.

 Sorry about the delay.

 Thanks,


 On Tue, Oct 18, 2011 at 6:31 AM, Nenad Vujicic nena...@gmail.com wrote:
  Hello everyone,
 
  Does anyone have idea how to fix vtkCubeAxesActor.cxx so it doesn't
  scale axes ticks too? Also, is this expected behavior or a bug?
 
  Best regards,
  Nenad.
 
  On Mon, Oct 3, 2011 at 7:21 PM, Nenad Vujicic nena...@gmail.com wrote:
  Dear Aashish,
 
  On Mon, Oct 3, 2011 at 6:34 PM, Aashish Chaudhary
  aashish.chaudh...@kitware.com wrote:
  Hi Nenand,
  ...
  I can have a look at it but it may take one or two days before I get
  to it.  How soon you need this?
 
 
 
  Thank You very much for Your response! I'm not in big rush, so it can
  wait few days.
 
  Best regards,
  Nenad.
 
  ___
  Powered by www.kitware.com
 
  Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html
 
  Please keep messages on-topic and check the ParaView Wiki at:
 http://paraview.org/Wiki/ParaView
 
  Follow this link to subscribe/unsubscribe:
  http://www.paraview.org/mailman/listinfo/paraview
 



 --
 | Aashish Chaudhary
 | RD Engineer
 | Kitware Inc.
 | www.kitware.com




-- 
| Aashish Chaudhary
| RD Engineer
| Kitware Inc.
| www.kitware.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Cube Axes labels problems in current ParaView sources

2011-10-18 Thread Nenad Vujicic
Hello everyone,

Does anyone have idea how to fix vtkCubeAxesActor.cxx so it doesn't
scale axes ticks too? Also, is this expected behavior or a bug?

Best regards,
Nenad.

On Mon, Oct 3, 2011 at 7:21 PM, Nenad Vujicic nena...@gmail.com wrote:
 Dear Aashish,

 On Mon, Oct 3, 2011 at 6:34 PM, Aashish Chaudhary
 aashish.chaudh...@kitware.com wrote:
 Hi Nenand,
 ...
 I can have a look at it but it may take one or two days before I get
 to it.  How soon you need this?



 Thank You very much for Your response! I'm not in big rush, so it can
 wait few days.

 Best regards,
 Nenad.

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Cube Axes labels problems in current ParaView sources

2011-10-18 Thread Aashish Chaudhary
Hi Nenad,

I looked into some but then got distracted. I will try to have a
solution this week.

Sorry about the delay.

Thanks,


On Tue, Oct 18, 2011 at 6:31 AM, Nenad Vujicic nena...@gmail.com wrote:
 Hello everyone,

 Does anyone have idea how to fix vtkCubeAxesActor.cxx so it doesn't
 scale axes ticks too? Also, is this expected behavior or a bug?

 Best regards,
 Nenad.

 On Mon, Oct 3, 2011 at 7:21 PM, Nenad Vujicic nena...@gmail.com wrote:
 Dear Aashish,

 On Mon, Oct 3, 2011 at 6:34 PM, Aashish Chaudhary
 aashish.chaudh...@kitware.com wrote:
 Hi Nenand,
 ...
 I can have a look at it but it may take one or two days before I get
 to it.  How soon you need this?



 Thank You very much for Your response! I'm not in big rush, so it can
 wait few days.

 Best regards,
 Nenad.

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview




-- 
| Aashish Chaudhary
| RD Engineer
| Kitware Inc.
| www.kitware.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Cube Axes labels problems in current ParaView sources

2011-10-03 Thread Aashish Chaudhary
Hi Nenand,

On Mon, Oct 3, 2011 at 12:28 PM, Nenad Vujicic nena...@gmail.com wrote:
 Hello everyone,

 I have problems with Cube Axes labels in ParaView v3.10.1 (and SVN
 sources). I load file with terrain mesh, turn on Show Cube Axes (on
 Display tab of Object Inspector) and everything is displayed great.
 However, if I scale (either using transformation controls on display
 tab or with Transform Filter) along Z axis, Z axis labels will be
 scaled too (numerically)! In this way labels (in my case elevation)
 will be incorrect. Is this correct behavior? Also, in Edit Cube Axes
 Properties dialog, when I select Custom Bounds, again both axes and
 axes labels are changed.

 I looked at vtkCubeAxesActor.cxx and it seems it generates entire axes
 mesh (both axes/ticks and labels) from previously calculated
 boundaries. Can anyone suggest some easy way to patch it, so only axes
 / ticks are scaled (i.e. without multiplying labels values)?

I can have a look at it but it may take one or two days before I get
to it.  How soon you need this?



 Thanks in advance!

 Best regards,
 Nenad.
 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview




-- 
| Aashish Chaudhary
| RD Engineer
| Kitware Inc.
| www.kitware.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Cube Axes labels problems in current ParaView sources

2011-10-03 Thread Nenad Vujicic
Dear Aashish,

On Mon, Oct 3, 2011 at 6:34 PM, Aashish Chaudhary
aashish.chaudh...@kitware.com wrote:
 Hi Nenand,
 ...
 I can have a look at it but it may take one or two days before I get
 to it.  How soon you need this?



Thank You very much for Your response! I'm not in big rush, so it can
wait few days.

Best regards,
Nenad.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview