wxart2d-users_dev Mailing List for wxArt2D (Page 3)
Status: Beta
Brought to you by:
titato
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(26) |
Aug
(28) |
Sep
(58) |
Oct
(164) |
Nov
(201) |
Dec
(179) |
| 2004 |
Jan
(165) |
Feb
(124) |
Mar
(106) |
Apr
(166) |
May
(203) |
Jun
(213) |
Jul
(102) |
Aug
(110) |
Sep
(61) |
Oct
(51) |
Nov
(54) |
Dec
(4) |
| 2005 |
Jan
(133) |
Feb
(47) |
Mar
(2) |
Apr
(22) |
May
(112) |
Jun
(193) |
Jul
(20) |
Aug
(8) |
Sep
(58) |
Oct
(6) |
Nov
(16) |
Dec
(14) |
| 2006 |
Jan
(50) |
Feb
(73) |
Mar
(18) |
Apr
(29) |
May
(42) |
Jun
(56) |
Jul
(19) |
Aug
(32) |
Sep
(45) |
Oct
(94) |
Nov
(30) |
Dec
(6) |
| 2007 |
Jan
(26) |
Feb
(31) |
Mar
(112) |
Apr
(48) |
May
(15) |
Jun
(15) |
Jul
(85) |
Aug
(94) |
Sep
(10) |
Oct
(26) |
Nov
(32) |
Dec
(9) |
| 2008 |
Jan
(100) |
Feb
(79) |
Mar
(59) |
Apr
(48) |
May
(13) |
Jun
(3) |
Jul
(26) |
Aug
(44) |
Sep
(30) |
Oct
(51) |
Nov
(6) |
Dec
(1) |
| 2009 |
Jan
|
Feb
(12) |
Mar
(1) |
Apr
(14) |
May
(3) |
Jun
(26) |
Jul
(39) |
Aug
(6) |
Sep
(11) |
Oct
(26) |
Nov
(3) |
Dec
(1) |
| 2010 |
Jan
(1) |
Feb
|
Mar
(14) |
Apr
(34) |
May
(4) |
Jun
(3) |
Jul
(11) |
Aug
(11) |
Sep
(19) |
Oct
(19) |
Nov
(31) |
Dec
|
| 2011 |
Jan
(13) |
Feb
(19) |
Mar
|
Apr
(28) |
May
(7) |
Jun
(1) |
Jul
(24) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(5) |
| 2012 |
Jan
|
Feb
(6) |
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(13) |
| 2013 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(8) |
Sep
|
Oct
(10) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(22) |
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(4) |
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
(13) |
Dec
(7) |
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
(1) |
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
|
From: Mike G. <mik...@da...> - 2016-10-27 22:46:41
|
Can you give me an example of using the rectangle to determine when the
creation of the rectangle is complete? What I mean is, with the code you
sent me, I get an "object added" event when the user clicks the mouse
the first time to indicate the first of the rectangle's corners. What I
need is the 2nd click which completes the rectangle. Basically, I want
to be able to show the dimensions of the rectangle once it has been
completed.
Also, I see that when a rectangle is resized, that I get 4
a2dCommandProcessorEvent "SetProperty" events, and 4 a2dDrawingEvents.
Is there a way to see what property is set?
I had previously emailed you about restricting the rectangle so that the
user cannot do skew and rotate, but now I see that a "reshape" has been
added. How do we block that?
If I make my own rectangle class, do I need to make my own rectangle
tool class so that the editor knows to use my rectangles instead of the
a2dRect?
I've tried to find a lot of these answers in the documentation, but I
have been unsuccessful. Is there somewhere in the documentation that
covers which events each class handles and emits?
Thanks again for your help!
- Mike
On 10/27/2016 4:05 PM, klaas.holwerda wrote:
> Hi Mike,
>
> How about make your own derived a2dDrawing class, and do intercept the events given down here:
> (first just put break points at those, to see when they are issued)
> I assume you have tools and undo redo with the commandprocessor on the a2dDrawing.
> You need to set that drawing to your a2dCanvas.
>
> SO in you own drawing class, you can do things like next, this at least should tell you that
> rectangles are added are removed.
> For change rectangles, maybe the OnChangeDrawings can helps you.
> The rect changed should have pending flag set. So iterate the objects, and test on that.
>
> If that is not enough, make your own derived rectangle, and via its m_root, you can call functions
> in your MyDRawing class.
> Like when editing is busy/done, or its pending flags gets set. See the virtual
> a2dCanvasObject::SetPending() which you can override in your own rect object.
> See the editing functionality in a2dRect, and how to get to the original object, and not the editcopy.
>
> Hope this helps, else mail again.
>
> Regards,
>
> Klaas
>
> void MyDrawing::OnDoEvent( a2dCommandProcessorEvent& event )
> {
> a2dCommand *command = event.GetCommand();
> const a2dCommandId* comId = command->GetCommandId();
>
> if ( ( comId == &a2dCommand_AddObject::Id ) )
> {
> a2dCanvasObject *obj = wxDynamicCast(command, a2dCommand_AddObject)->GetCanvasObject();
> a2dRect* rect = wxDynamicCast( obj, a2dRect );
> if (rect)
> {
> wxLogDebug( wxString::Format("Do AddObject: %s, %p",
> rect->GetClassInfo()->GetClassName(), rect) );
> }
> }
> else if ( ( comId == &a2dCommand_AddObjects::Id ) )
> {
> a2dCanvasObjectList& objlist = wxDynamicCast(command, a2dCommand_AddObjects)->GetObjectList();
> for( a2dCanvasObjectList::iterator iter = objlist.begin(); iter != objlist.end(); ++iter )
> {
> a2dRect* rect = wxDynamicCast( (*iter).Get(), a2dRect );
> if (rect)
> {
> wxLogDebug( wxString::Format("Do AddObject: %s, %p",
> rect->GetClassInfo()->GetClassName(), rect) );
> }
>
> }
> }
> else if ( ( comId == &a2dCommand_ReleaseObject::Id ) )
> {
> a2dCanvasObject *obj = wxDynamicCast(command, a2dCommand_AddObject)->GetCanvasObject();
> a2dRect* rect = wxDynamicCast( obj, a2dRect );
> if (rect)
> {
> wxLogDebug( wxString::Format("Do AddObject: %s, %p",
> rect->GetClassInfo()->GetClassName(), rect) );
> }
> }
> else
> {
> //wxLogDebug( wxString::Format("Do Cmd Name: %s", comId->GetName() ) );
> }
> event.Skip();
> }
>
>
>
> BEGIN_EVENT_TABLE( a2dDrawing, a2dObject )
> EVT_IDLE( a2dDrawing::OnIdle )
> EVT_COM_EVENT( a2dDrawing::OnComEvent )
> EVT_NEW_CAMELEON( a2dDrawing::OnAddCameleon )
> EVT_DO( a2dDrawing::OnDoEvent )
> EVT_UNDO( a2dDrawing::OnUndoEvent )
> EVT_REDO( a2dDrawing::OnRedoEvent )
> EVT_CHANGEDMODIFY_DRAWING( a2dDrawing::OnChangeDrawings )
> END_EVENT_TABLE()
>
>
> void a2dDrawing::OnDoEvent( a2dCommandProcessorEvent& event )
> {
> if ( event.GetCommand()->Modifies() )
> Modify( true );
> }
>
> void a2dDrawing::OnRedoEvent( a2dCommandProcessorEvent& event )
> {
> if ( event.GetCommand()->Modifies() )
> Modify( true );
> }
>
> void a2dDrawing::OnUndoEvent( a2dCommandProcessorEvent& event )
> {
> if ( event.GetCommand()->Modifies() )
> Modify( false );
> }
>
> void a2dDrawing::OnChangeDrawings( a2dDrawingEvent& event )
> {
> event.Skip();
> }
>
> void a2dDrawing::Modify( bool increment )
> {
> if ( increment )
> m_documentModified++;
> else
> m_documentModified--;
>
> a2dDrawingEvent event( 0, wxEVT_CHANGEDMODIFY_DRAWING, this );
> event.SetEventObject( this );
> event.SetModified( increment ? +1 : -1 );
> if ( !ProcessEvent( event ) )
> {
> //parent is processed in ProcessEvent() already
> }
> }
>
>
>
> On 10/27/2016 12:10 AM, Mike Gibson wrote:
>> Hi Klaas,
>>
>> My IDE marked them as errors. I didn't notice that they were only warnings. I got the first
>> problem fixed. BUT I'm having a lot of difficulty getting events connected properly in wxArt2d. I
>> was hoping you could steer me in the right direction. Here's what I have (and need):
>>
>> I have a wxDialog which has a a2dCanvas in it. I want the user to be able to draw and edit
>> rectangles on the canvas, but I need to capture data about the rectangles. The only things I need are:
>> - I need to know when a new rectangle is created, and need to get a pointer to the rectangle.
>> - I need to know when an existing rectangle is edited (moved or resized only), and be able to
>> access the new dimensions of the rectangle.
>>
>> I've tried connecting wxEVT_CANVASOBJECT_RESIZE_EVENTs to the rectangle and giving the rectangle
>> an event handler function, I've tried the same giving my wxDialog class the event handler
>> function. I've tried connecting many different types of events to the a2dstToolContr, I've tried
>> deriving my own rectangle class and connecting events, I've tried deriving my own tool control
>> from a2dstToolContr and connecting events, I've tried getting events from the
>> a2dDrawRectangleTool, and I can't get anything to work.
>>
>> How do I capture these events?
>>
>> I appreciate how responsive you are, thanks!
>> - Mike
>
> ------------------------------------------------------------------------------
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> _______________________________________________
> Wxart2d-users_dev mailing list
> Wxa...@li...
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
|
|
From: klaas.holwerda <ng...@kl...> - 2016-10-27 20:05:44
|
Hi Mike,
How about make your own derived a2dDrawing class, and do intercept the events given down here:
(first just put break points at those, to see when they are issued)
I assume you have tools and undo redo with the commandprocessor on the a2dDrawing.
You need to set that drawing to your a2dCanvas.
SO in you own drawing class, you can do things like next, this at least should tell you that
rectangles are added are removed.
For change rectangles, maybe the OnChangeDrawings can helps you.
The rect changed should have pending flag set. So iterate the objects, and test on that.
If that is not enough, make your own derived rectangle, and via its m_root, you can call functions
in your MyDRawing class.
Like when editing is busy/done, or its pending flags gets set. See the virtual
a2dCanvasObject::SetPending() which you can override in your own rect object.
See the editing functionality in a2dRect, and how to get to the original object, and not the editcopy.
Hope this helps, else mail again.
Regards,
Klaas
void MyDrawing::OnDoEvent( a2dCommandProcessorEvent& event )
{
a2dCommand *command = event.GetCommand();
const a2dCommandId* comId = command->GetCommandId();
if ( ( comId == &a2dCommand_AddObject::Id ) )
{
a2dCanvasObject *obj = wxDynamicCast(command, a2dCommand_AddObject)->GetCanvasObject();
a2dRect* rect = wxDynamicCast( obj, a2dRect );
if (rect)
{
wxLogDebug( wxString::Format("Do AddObject: %s, %p",
rect->GetClassInfo()->GetClassName(), rect) );
}
}
else if ( ( comId == &a2dCommand_AddObjects::Id ) )
{
a2dCanvasObjectList& objlist = wxDynamicCast(command, a2dCommand_AddObjects)->GetObjectList();
for( a2dCanvasObjectList::iterator iter = objlist.begin(); iter != objlist.end(); ++iter )
{
a2dRect* rect = wxDynamicCast( (*iter).Get(), a2dRect );
if (rect)
{
wxLogDebug( wxString::Format("Do AddObject: %s, %p",
rect->GetClassInfo()->GetClassName(), rect) );
}
}
}
else if ( ( comId == &a2dCommand_ReleaseObject::Id ) )
{
a2dCanvasObject *obj = wxDynamicCast(command, a2dCommand_AddObject)->GetCanvasObject();
a2dRect* rect = wxDynamicCast( obj, a2dRect );
if (rect)
{
wxLogDebug( wxString::Format("Do AddObject: %s, %p",
rect->GetClassInfo()->GetClassName(), rect) );
}
}
else
{
//wxLogDebug( wxString::Format("Do Cmd Name: %s", comId->GetName() ) );
}
event.Skip();
}
BEGIN_EVENT_TABLE( a2dDrawing, a2dObject )
EVT_IDLE( a2dDrawing::OnIdle )
EVT_COM_EVENT( a2dDrawing::OnComEvent )
EVT_NEW_CAMELEON( a2dDrawing::OnAddCameleon )
EVT_DO( a2dDrawing::OnDoEvent )
EVT_UNDO( a2dDrawing::OnUndoEvent )
EVT_REDO( a2dDrawing::OnRedoEvent )
EVT_CHANGEDMODIFY_DRAWING( a2dDrawing::OnChangeDrawings )
END_EVENT_TABLE()
void a2dDrawing::OnDoEvent( a2dCommandProcessorEvent& event )
{
if ( event.GetCommand()->Modifies() )
Modify( true );
}
void a2dDrawing::OnRedoEvent( a2dCommandProcessorEvent& event )
{
if ( event.GetCommand()->Modifies() )
Modify( true );
}
void a2dDrawing::OnUndoEvent( a2dCommandProcessorEvent& event )
{
if ( event.GetCommand()->Modifies() )
Modify( false );
}
void a2dDrawing::OnChangeDrawings( a2dDrawingEvent& event )
{
event.Skip();
}
void a2dDrawing::Modify( bool increment )
{
if ( increment )
m_documentModified++;
else
m_documentModified--;
a2dDrawingEvent event( 0, wxEVT_CHANGEDMODIFY_DRAWING, this );
event.SetEventObject( this );
event.SetModified( increment ? +1 : -1 );
if ( !ProcessEvent( event ) )
{
//parent is processed in ProcessEvent() already
}
}
On 10/27/2016 12:10 AM, Mike Gibson wrote:
> Hi Klaas,
>
> My IDE marked them as errors. I didn't notice that they were only warnings. I got the first
> problem fixed. BUT I'm having a lot of difficulty getting events connected properly in wxArt2d. I
> was hoping you could steer me in the right direction. Here's what I have (and need):
>
> I have a wxDialog which has a a2dCanvas in it. I want the user to be able to draw and edit
> rectangles on the canvas, but I need to capture data about the rectangles. The only things I need are:
> - I need to know when a new rectangle is created, and need to get a pointer to the rectangle.
> - I need to know when an existing rectangle is edited (moved or resized only), and be able to
> access the new dimensions of the rectangle.
>
> I've tried connecting wxEVT_CANVASOBJECT_RESIZE_EVENTs to the rectangle and giving the rectangle
> an event handler function, I've tried the same giving my wxDialog class the event handler
> function. I've tried connecting many different types of events to the a2dstToolContr, I've tried
> deriving my own rectangle class and connecting events, I've tried deriving my own tool control
> from a2dstToolContr and connecting events, I've tried getting events from the
> a2dDrawRectangleTool, and I can't get anything to work.
>
> How do I capture these events?
>
> I appreciate how responsive you are, thanks!
> - Mike
|
|
From: Mike G. <mik...@da...> - 2016-10-26 22:36:35
|
Hi Klaas, My IDE marked them as errors. I didn't notice that they were only warnings. I got the first problem fixed. BUT I'm having a lot of difficulty getting events connected properly in wxArt2d. I was hoping you could steer me in the right direction. Here's what I have (and need): I have a wxDialog which has a a2dCanvas in it. I want the user to be able to draw and edit rectangles on the canvas, but I need to capture data about the rectangles. The only things I need are: - I need to know when a new rectangle is created, and need to get a pointer to the rectangle. - I need to know when an existing rectangle is edited (moved or resized only), and be able to access the new dimensions of the rectangle. I've tried connecting wxEVT_CANVASOBJECT_RESIZE_EVENTs to the rectangle and giving the rectangle an event handler function, I've tried the same giving my wxDialog class the event handler function. I've tried connecting many different types of events to the a2dstToolContr, I've tried deriving my own rectangle class and connecting events, I've tried deriving my own tool control from a2dstToolContr and connecting events, I've tried getting events from the a2dDrawRectangleTool, and I can't get anything to work. How do I capture these events? I appreciate how responsive you are, thanks! - Mike On 10/21/2016 10:56 AM, klaas.holwerda wrote: > Hi Mike, > > All/Mostly warnings I would say, it does compile I see. > Only when linking there is a problem. > > Did you set the verbose flag in cmake? > > I don't see any libraries linked. > > What real errors do you see ? > > Regards, > > Klaas > > PS I do not test mingw, but on Linux it compiles oke. > > On 10/21/2016 12:43 AM, Mike Gibson wrote: >> >> Hello, >> >> We have a project that we're trying to upgrade from wxWidgets 2.8.11 >> to wxWidgets 3.0, and we are simultaneously upgrading to wxArt2d 963. >> >> We were able to compile the wxArt2d library against wxWidgets, >> however, the project will not compile. >> >> The project was able to compile with no errors before the upgrades. >> We are seeing some weird errors in wxArt2d modules, so I decided to >> attempt to compile the wxArt2d sample project samples/canvas/simple. >> >> Here is a sample of some of the errors: >> >> C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1323|warning: >> unused variable 'root' [-Wunused-variable]| >> >> C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2236| >> required from 'void a2dDnDCanvasObjectData<parserTypeIn, >> parserTypeOut>::CreateMetaFileW() const [with parserTypeIn = >> a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'| >> >> C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|1991| >> required from 'size_t a2dDnDCanvasObjectData<parserTypeIn, >> parserTypeOut>::GetDataSize(const wxDataFormat&) const [with >> parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut; >> size_t = unsigned int]'| >> >> C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485| >> required from here| >> >> ------------------------------------------------------- >> >> C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2252| >> required from 'void a2dDnDCanvasObjectData<parserTypeIn, >> parserTypeOut>::CreateBitmap() const [with parserTypeIn = >> a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'| >> >> C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2010| >> required from 'size_t a2dDnDCanvasObjectData<parserTypeIn, >> parserTypeOut>::GetDataSize(const wxDataFormat&) const [with >> parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut; >> size_t = unsigned int]'| >> >> C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485| >> required from here| >> >> >> What is causing these errors? I've included the entire build log at >> the end of this message. >> >> Thanks, >> >> - Mike >> > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > _______________________________________________ > Wxart2d-users_dev mailing list > Wxa...@li... > https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev |
|
From: klaas.holwerda <ng...@kl...> - 2016-10-21 14:56:22
|
Hi Mike, All/Mostly warnings I would say, it does compile I see. Only when linking there is a problem. Did you set the verbose flag in cmake? I don't see any libraries linked. What real errors do you see ? Regards, Klaas PS I do not test mingw, but on Linux it compiles oke. On 10/21/2016 12:43 AM, Mike Gibson wrote: > > Hello, > > We have a project that we're trying to upgrade from wxWidgets 2.8.11 to wxWidgets 3.0, and we are > simultaneously upgrading to wxArt2d 963. > > We were able to compile the wxArt2d library against wxWidgets, however, the project will not compile. > > The project was able to compile with no errors before the upgrades. We are seeing some weird > errors in wxArt2d modules, so I decided to attempt to compile the wxArt2d sample project > samples/canvas/simple. > > Here is a sample of some of the errors: > > C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1323|warning: > unused variable 'root' [-Wunused-variable]| > > C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2236| > required from 'void a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::CreateMetaFileW() const > [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'| > > C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|1991| > required from 'size_t a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::GetDataSize(const > wxDataFormat&) const [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut; > size_t = unsigned int]'| > > C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485| > required from here| > > ------------------------------------------------------- > > C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2252| > required from 'void a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::CreateBitmap() const > [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'| > > C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2010| > required from 'size_t a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::GetDataSize(const > wxDataFormat&) const [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut; > size_t = unsigned int]'| > > C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485| > required from here| > > > What is causing these errors? I've included the entire build log at the end of this message. > > Thanks, > > - Mike > |
|
From: Mike G. <mik...@da...> - 2016-10-20 23:04:00
|
Hello,
We have a project that we're trying to upgrade from wxWidgets 2.8.11 to
wxWidgets 3.0, and we are simultaneously upgrading to wxArt2d 963.
We were able to compile the wxArt2d library against wxWidgets, however,
the project will not compile.
The project was able to compile with no errors before the upgrades. We
are seeing some weird errors in wxArt2d modules, so I decided to attempt
to compile the wxArt2d sample project samples/canvas/simple.
Here is a sample of some of the errors:
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1323|warning:
unused variable 'root' [-Wunused-variable]|
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2236|
required from 'void a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::CreateMetaFileW() const [with parserTypeIn =
a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'|
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|1991|
required from 'size_t a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::GetDataSize(const wxDataFormat&) const [with
parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut;
size_t = unsigned int]'|
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485|
required from here|
-------------------------------------------------------
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2252|
required from 'void a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::CreateBitmap() const [with parserTypeIn =
a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'|
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2010|
required from 'size_t a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::GetDataSize(const wxDataFormat&) const [with
parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut;
size_t = unsigned int]'|
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485|
required from here|
What is causing these errors? I've included the entire build log at the
end of this message.
Thanks,
- Mike
This is the build log (sorry about formatting):
-------------- Build: Debug in canvassimple ---------------
mingw32-g++.exe -Wall -g -Wall
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxartbase
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxwidgets\include\
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxdocview\
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\freetype
-IC:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\agg
-c
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp
-o obj\Debug\simple.o
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/booloper.h:25:0,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canmod.h:41,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.h:20,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:22:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include/kbool/booleng.h:33:0:
warning: "WXEXPORT" redefined [enabled by default]
# define WXEXPORT __declspec(dllexport)
^
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxwidgets\include/wx/defs.h:524:0,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxwidgets\include/wx/wxprec.h:12,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/a2dprec.h:8,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:11:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxwidgets\include/wx/dlimpexp.h:66:0:
note: this is the location of the previous definition
# define WXEXPORT
^
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/booloper.h:25:0,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canmod.h:41,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.h:20,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:22:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include/kbool/booleng.h:34:0:
warning: "WXIMPORT" redefined [enabled by default]
# define WXIMPORT __declspec(dllimport)
^
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxwidgets\include/wx/defs.h:524:0,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxwidgets\include/wx/wxprec.h:12,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/a2dprec.h:8,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:11:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxwidgets\include/wx/dlimpexp.h:67:0:
note: this is the location of the previous definition
# define WXIMPORT
^
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/artbase/drawer2d.h:34:0,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/artbase/artmod.h:20,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canmod.h:16,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.h:20,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:22:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/artbase/polyver.h:
In member function 'bool a2dHit::IsInsideHit() const':
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/artbase/polyver.h:110:96:
warning: suggest parentheses around '&&' within '||' [-Wparentheses]
bool IsInsideHit() const { return ( m_hit & hit_fill ) != 0 || (
m_hit & hit_stroke ) != 0 && m_stroke1 == stroke1_inside; }
^
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canprop.h:20:0,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/objlist.h:26,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/tools.h:30,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:38,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canvas.h:31,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canmod.h:21,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.h:20,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:22:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/layerinf.h:
In member function 'bool a2dLayerInfo::StateChange()':
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/layerinf.h:217:51:
warning: suggest parentheses around '&&' within '||' [-Wparentheses]
m_canvasPreviousObjectCount != 0 &&
m_canvasObjectCount == 0 ||
^
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:40:0,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:33:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\agg/agg_pixfmt_rgba.h:
In member function 'void agg::pixfmt_alpha_blend_rgba<Blender, RenBuf,
PixelT>::blend_from_color(const SrcPixelFormatRenderer&, const
color_type&, int, int, int, int, unsigned int, agg::int8u)':
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\agg/agg_pixfmt_rgba.h:2371:65:
warning: typedef 'src_color_type' locally defined but not used
[-Wunused-local-typedefs]
typedef typename SrcPixelFormatRenderer::color_type
src_color_type;
^
In file included from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:33:0:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:
In constructor
'{anonymous}::span_conv_array_alpha_rgba8::span_conv_array_alpha_rgba8(const
wxImage&, {anonymous}::span_conv_array_alpha_rgba8::alpha_type)':
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:799:13:
warning: '{anonymous}::span_conv_array_alpha_rgba8::m_image' will be
initialized after [-Wreorder]
wxImage m_image;
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:798:16:
warning: '{anonymous}::span_conv_array_alpha_rgba8::alpha_type
{anonymous}::span_conv_array_alpha_rgba8::m_alpha' [-Wreorder]
alpha_type m_alpha;
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:783:5:
warning: when initialized here [-Wreorder]
span_conv_array_alpha_rgba8( const wxImage& image, alpha_type a ) :
^
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:
In member function 'void MyFrame::FillDoc5(a2dCanvasObject*)':
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:900:12:
warning: variable 'dHeight' set but not used [-Wunused-but-set-variable]
double dHeight = p->GetTextHeight();
^
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:
In member function 'void MyFrame::FillDoc2(a2dCanvasObject*)':
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:985:12:
warning: unused variable 'sizef' [-Wunused-variable]
double sizef = 10;
^
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:
In member function 'void MyFrame::FillDoc1(a2dCanvasObject*)':
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:1250:12:
warning: unused variable 'sizef' [-Wunused-variable]
double sizef = 10;
^
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:
In member function 'void MyFrame::OnPasteShape(wxCommandEvent&)':
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:1347:85:
warning: value computed is not used [-Wunused-value]
(a2dStToolContr *)
(part->GetCanvasToolContr())->PushTool( dragnew );
^
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:1323:27:
warning: unused variable 'root' [-Wunused-variable]
a2dCanvasObject* root = part->GetDrawing()->GetRootObject();
^
In file included from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canvas.h:31:0,
from
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/canmod.h:21,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.h:20,
from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:22:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:
In instantiation of 'void a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::RenderToDc(wxDC*, a2dCanvasObject*) const [with
parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]':
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:2236:51:
required from 'void a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::CreateMetaFileW() const [with parserTypeIn =
a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:1991:28:
required from 'size_t a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::GetDataSize(const wxDataFormat&) const [with
parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut;
size_t = unsigned int]'
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:1485:1:
required from here
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:2431:10:
warning: unused variable 'yaxis' [-Wunused-variable]
bool yaxis = true;
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:
In instantiation of 'wxBitmap a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::RenderImage(a2dCanvasObject*) const [with parserTypeIn =
a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]':
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:2252:63:
required from 'void a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::CreateBitmap() const [with parserTypeIn =
a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:2010:26:
required from 'size_t a2dDnDCanvasObjectData<parserTypeIn,
parserTypeOut>::GetDataSize(const wxDataFormat&) const [with
parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut;
size_t = unsigned int]'
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:1485:1:
required from here
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/canvas/drawer.h:2312:10:
warning: unused variable 'yaxis' [-Wunused-variable]
bool yaxis = true;
^
In file included from
C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp:33:0:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:
At global scope:
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:177:20:
warning: 'HORIZONTAL_HATCH_XPM' defined but not used [-Wunused-variable]
static const char* HORIZONTAL_HATCH_XPM[] =
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:216:20:
warning: 'VERTICAL_HATCH_XPM' defined but not used [-Wunused-variable]
static const char* VERTICAL_HATCH_XPM[] =
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:255:20:
warning: 'FDIAGONAL_HATCH_XPM' defined but not used [-Wunused-variable]
static const char* FDIAGONAL_HATCH_XPM[] =
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:294:20:
warning: 'BDIAGONAL_HATCH_XPM' defined but not used [-Wunused-variable]
static const char* BDIAGONAL_HATCH_XPM[] =
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:333:20:
warning: 'CROSSDIAG_HATCH_XPM' defined but not used [-Wunused-variable]
static const char* CROSSDIAG_HATCH_XPM[] =
^
C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d/wx/aggdrawer/aggdrawer.h:372:20:
warning: 'CROSS_HATCH_XPM' defined but not used [-Wunused-variable]
static const char* CROSS_HATCH_XPM[] =
^
mingw32-g++.exe -o bin\Debug\canvassimple.exe obj\Debug\simple.o
obj\Debug\simple.o: In function
`ZN19MyCanvasStToolContrC2EP14a2dDrawingPartP7wxFrame':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:60:
undefined reference to `a2dStToolContr::a2dStToolContr(a2dDrawingPart*,
wxFrame*, bool)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:73:
undefined reference to `TC_ZOOMBACK'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:73:
undefined reference to `wxMenuBase::SetLabel(int, wxString const&)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:74:
undefined reference to `TC_ZOOMBACK'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:76:
undefined reference to `TC_ZOOMOUT'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:76:
undefined reference to `wxMenuBase::SetLabel(int, wxString const&)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:77:
undefined reference to `TC_ZOOMOUT'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:79:
undefined reference to `TC_ZOOMOUT2'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:79:
undefined reference to `wxMenuBase::SetLabel(int, wxString const&)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:80:
undefined reference to `TC_ZOOMOUT2'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:82:
undefined reference to `TC_ZOOMIN2'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:82:
undefined reference to `wxMenuBase::SetLabel(int, wxString const&)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:85:
undefined reference to `TC_PROPERTY_XY'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:87:
undefined reference to `wxEmptyString'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:60:
undefined reference to `a2dStToolContr::~a2dStToolContr()'
obj\Debug\simple.o: In function
`ZN19MyCanvasStToolContr16MyEditPropertiesER14wxCommandEvent':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:93:
undefined reference to `a2dPropertyTool::a2dPropertyTool(a2dStToolContr*)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:96:
undefined reference to `a2dPropertyTool::StartEditing(int, int)'
obj\Debug\simple.o: In function
`ZN8MyCircle13AddPropertyIdEP13a2dPropertyId':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `wxTheAssertHandler'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `operator+(wxString const&, wxString const&)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `operator+(wxString const&, wxString const&)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `wxOnAssert(char const*, int, char const*, char
const*, wxString const&)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `wxTrapInAssert'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `wxTrapInAssert'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `wxTrap()'
obj\Debug\simple.o: In function
`ZNK8MyCircle13HasPropertyIdEPK13a2dPropertyId':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `a2dCircle::HasPropertyId(a2dPropertyId const*)
const'
obj\Debug\simple.o: In function `ZN8MyCircle13HasPropertyIdERK8wxString':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `a2dCircle::HasPropertyId(wxString const&)'
obj\Debug\simple.o: In function `ZNK8MyCircle12FindPropertyERK8wxString':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `a2dObject::GetProperty(a2dPropertyId const*,
a2dPropertyId::Flags) const'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to `a2dCircle::FindProperty(wxString const&) const'
obj\Debug\simple.o: In function
`ZNK8MyCircle18CollectProperties2EP20a2dNamedPropertyListPK13a2dPropertyIdNS2_5FlagsE':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:106:
undefined reference to
`a2dCircle::CollectProperties2(a2dNamedPropertyList*, a2dPropertyId
const*, a2dPropertyId::Flags) const'
obj\Debug\simple.o: In function `ZN8MyCircle21InitializePropertyIdsEv':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:110:
undefined reference to `wxEmptyString'
obj\Debug\simple.o: In function `ZN8MyCircleC2Ev':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:124:
undefined reference to `a2dCircle::a2dCircle()'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:126:
undefined reference to `a2dStringProperty::a2dStringProperty()'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:124:
undefined reference to `a2dCircle::~a2dCircle()'
obj\Debug\simple.o: In function `ZN8MyCircleC2Eddd':
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:132:
undefined reference to `a2dCircle::a2dCircle(double, double, double,
double)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:143:
undefined reference to `a2dStringProperty::a2dStringProperty()'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:150:
undefined reference to `a2dFont::a2dFont(double, wxFontFamily,
wxFontStyle, wxFontWeight, bool, wxString const&, wxFontEncoding)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:150:
undefined reference to
`a2dVisibleProperty::a2dVisibleProperty(a2dCanvasObject*, a2dPropertyId
const*, double, double, bool, a2dFont const&, double)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:150:
undefined reference to `a2dFont::~a2dFont()'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:153:
undefined reference to `a2dCanvasObject::SetFill(wxColour const&,
a2dFillStyle)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:154:
undefined reference to `a2dCanvasObject::Append(a2dCanvasObject*)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:159:
undefined reference to `a2dFont::a2dFont(double, wxFontFamily,
wxFontStyle, wxFontWeight, bool, wxString const&, wxFontEncoding)'
C:/Users/mike_gibson/Downloads/wxart2d-code-963-trunk/wxart2d-code-963-trunk/wxArt2D/packages/wxart2d/samples/canvas/simple/simple.cpp:159:
undefined reference to
`a2dVisibleProperty::a2dVisibleProperty(a2dCanvasObject*, a2dPropertyId
const*, double, double, bool, a2dFont const&, double)'
Process terminated with status 1 (0 minutes, 25 seconds)
50 errors, 21 warnings
Build log saved as:
file://C:%5cUsers%5cmike_gibson%5cDownloads%5cwxart2d-code-963-trunk%5cwxart2d-code-963-trunk%5cwxArt2D%5cpackages%5cwxart2d%5csamples%5ccanvas%5csimple%5ccanvassimple%5ccanvassimple_build_log.html
|
|
From: klaas.holwerda <ng...@kl...> - 2016-10-19 15:44:13
|
i David, What installation method did you follow? And at what step it went wrong? http://www.wxart2d.org/cgi-bin/moin.cgi/WxArt2dInstallCmake wxartbase is setup as part of wxdocview module. So not done separate. "GENERATE_POT" is a macro for generating translations. If you install poedit, and add its bin path to it to your path, cmake will find it. I can only tell you how to solve it with more info on what you are doing. Here all works as expected, so it must be the way you are trying to compile all. Regards, Klaas On 10/18/2016 11:21 PM, damateem wrote: > CMake generates the following error when configuring wxArtBase. > > CMake Error at general/src/CMakeLists.txt:30 (GENERATE_POT): > Unknown CMake command "GENERATE_POT". > > A few questions: > > 1.) What is GENERATE_POT? > > 2.) How do I clear this error? > > 3.) Is it necessary to build wxArtBase independently? > > Thanks, > David > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Wxart2d-users_dev mailing list > Wxa...@li... > https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev > |
|
From: damateem <dam...@gm...> - 2016-10-18 21:21:27
|
CMake generates the following error when configuring wxArtBase.
CMake Error at general/src/CMakeLists.txt:30 (GENERATE_POT):
Unknown CMake command "GENERATE_POT".
A few questions:
1.) What is GENERATE_POT?
2.) How do I clear this error?
3.) Is it necessary to build wxArtBase independently?
Thanks,
David
|
|
From: klaas.holwerda <ng...@kl...> - 2016-10-16 19:37:11
|
Hi Mike, On 10/14/2016 11:56 PM, Mike Gibson wrote: > > Hi, > > I'm trying to make a project that has an a2dcanvas and a tool controller derived from a2dStToolContr. > > I'm trying to make it so that when the editing tool a2dRecursiveEditTool is popped onto the > a2dStToolContr stack, that when a certain a2dRect is selected, that the user will be unable to > rotate the rectangle. > I think you mean pushed instead of popped. a2dObjectEditTool is I think better for you. > I've searched and found a supposed solution, but it does not work (here: > https://sourceforge.net/p/wxart2d/mailman/message/18925778/) > > Here is the code for adding the rectangle: > > a2dCanvasDocument* root = CameraView->GetCanvasDocument(); > root->SetCanvasDocumentRecursive(); > > m_ToolController = new MyCanvasStToolContr(CameraView->GetCanvasView(), > TopFrame); > > m_ToolController->SetTopTool( new a2dDragTool(m_ToolController)); > > > a2dRect *Rect = new a2dRect(0,0,2,2); > > Rect->SetStroke(wxColour(0,255,0), STROKE_WIDTH, > a2dSTROKE_SOLID); > > root->Append(Rect); > > a2dCanvasObject::PROPID_Allowrotation->SetPropertyToObject(Rect, false); > a2dCanvasObject::PROPID_Allowskew->SetPropertyToObject(Rect, false); > > > But the edit tool is always able to rotate and skew the rectangle above. How do I get this to work?? > There was a bug, I fixed it. See single2 example for the property, seems to work now. > (It occurs to me that perhaps the reason this doesn't work is that the edit tool creates a clone > of the object that it is editing, and perhaps the property of "do not allow rotation" doesn't get > cloned with it?) > No, the bug did reset them to true. If still a problem, let me know. Regards, Klaas |
|
From: Mike G. <mik...@da...> - 2016-10-14 22:21:42
|
Hi, I'm trying to make a project that has an a2dcanvas and a tool controller derived from a2dStToolContr. I'm trying to make it so that when the editing tool a2dRecursiveEditTool is popped onto the a2dStToolContr stack, that when a certain a2dRect is selected, that the user will be unable to rotate the rectangle. I've searched and found a supposed solution, but it does not work (here: https://sourceforge.net/p/wxart2d/mailman/message/18925778/) Here is the code for adding the rectangle: a2dCanvasDocument* root = CameraView->GetCanvasDocument(); root->SetCanvasDocumentRecursive(); m_ToolController = new MyCanvasStToolContr(CameraView->GetCanvasView(), TopFrame); m_ToolController->SetTopTool( new a2dDragTool(m_ToolController)); a2dRect *Rect = new a2dRect(0,0,2,2); Rect->SetStroke(wxColour(0,255,0), STROKE_WIDTH, a2dSTROKE_SOLID); root->Append(Rect); a2dCanvasObject::PROPID_Allowrotation->SetPropertyToObject(Rect, false); a2dCanvasObject::PROPID_Allowskew->SetPropertyToObject(Rect, false); But the edit tool is always able to rotate and skew the rectangle above. How do I get this to work?? (It occurs to me that perhaps the reason this doesn't work is that the edit tool creates a clone of the object that it is editing, and perhaps the property of "do not allow rotation" doesn't get cloned with it?) Thanks, - Mike |
|
From: Süleyman D. (S. <de...@ar...> - 2016-03-30 11:17:20
|
Hi Klaas,
ok i see, but thank you, the fix solved my problem.
Regards,
Demir
Am 24.03.2016 um 23:46 schrieb klaas.holwerda:
> Hi Demir,
>
> You are seeing I think the busy cursor.
> Do update from svn, and the next.
> Not the final solution, but a fix.
> The point is that some commands take long, and user does not understand what is going on.
> But for the short commands, there is no need, or as in this case it flashes, since the tool sets it
> differently right away.
> I am do not see a proper solution yet.
>
> Regards,
> Klaas
>
>
> void a2dDrawingPart::OnBusyBegin( a2dCommandProcessorEvent& WXUNUSED( event ) )
> {
> //PushCursor( a2dCanvasGlobals->GetCursor( a2dCURSOR_WAIT ) );
> }
>
> void a2dDrawingPart::OnBusyEnd( a2dCommandProcessorEvent& WXUNUSED( event ) )
> {
> //PopCursor();
> }
>
>
> On 03/24/2016 12:59 PM, Süleyman Demir (SD) wrote:
>> Hello,
>>
>> there flashes an icon in the first mouse click when i use a tool with
>> the latest wxArt2D from SVN.
>> It is hard to describe. Please test it with the sample_aggdrawer_tuto.
>>
>> regards
>> Demir
>>
>> ------------------------------------------------------------------------------
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
>> _______________________________________________
>> Wxart2d-users_dev mailing list
>> Wxa...@li...
>> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
>>
>
|
|
From: klaas.holwerda <ng...@kl...> - 2016-03-24 22:09:21
|
Hi Demir,
You are seeing I think the busy cursor.
Do update from svn, and the next.
Not the final solution, but a fix.
The point is that some commands take long, and user does not understand what is going on.
But for the short commands, there is no need, or as in this case it flashes, since the tool sets it
differently right away.
I am do not see a proper solution yet.
Regards,
Klaas
void a2dDrawingPart::OnBusyBegin( a2dCommandProcessorEvent& WXUNUSED( event ) )
{
//PushCursor( a2dCanvasGlobals->GetCursor( a2dCURSOR_WAIT ) );
}
void a2dDrawingPart::OnBusyEnd( a2dCommandProcessorEvent& WXUNUSED( event ) )
{
//PopCursor();
}
On 03/24/2016 12:59 PM, Süleyman Demir (SD) wrote:
> Hello,
>
> there flashes an icon in the first mouse click when i use a tool with
> the latest wxArt2D from SVN.
> It is hard to describe. Please test it with the sample_aggdrawer_tuto.
>
> regards
> Demir
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> _______________________________________________
> Wxart2d-users_dev mailing list
> Wxa...@li...
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
>
|
|
From: Süleyman D. (S. <de...@ar...> - 2016-03-24 12:13:27
|
Hello, there flashes an icon in the first mouse click when i use a tool with the latest wxArt2D from SVN. It is hard to describe. Please test it with the sample_aggdrawer_tuto. regards Demir |
|
From: klaas.holwerda <ng...@kl...> - 2015-10-08 13:01:27
|
Hi, I think I fixed it. Regards, Klaas On 10/07/2015 03:08 PM, "Süleyman Demir (SD)" wrote: > Hello, > > there is a problem in DrawTextTool with T/t and R/r. > I saw in a2dStTool::OnKeyDown () that it is fixed there but not in > a2dStToolContr::OnKeyDown. > > Regards > Süleyman Demir > > ------------------------------------------------------------------------------ > Full-scale, agent-less Infrastructure Monitoring from a single dashboard > Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > Physical-Virtual-Cloud Infrastructure monitoring from one console > Real user monitoring with APM Insights and performance trend reports > Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > _______________________________________________ > Wxart2d-users_dev mailing list > Wxa...@li... > https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev > |
|
From: Süleyman D. (SD) <de...@ar...> - 2015-10-07 13:21:47
|
Hello, there is a problem in DrawTextTool with T/t and R/r. I saw in a2dStTool::OnKeyDown () that it is fixed there but not in a2dStToolContr::OnKeyDown. Regards Süleyman Demir |
|
From: klaas.holwerda <ng...@kl...> - 2015-09-26 21:46:13
|
On 09/25/2015 11:12 PM, Mike Gibson wrote:
> The software that we are creating needs a way for the user to enter in a
> zoom level and xy position that they want to use for the wxArt2d canvas.
This here might give you a hint, also search for the word zoom in that file, man examples on how to
change zoom.
bool a2dCanvasCommandProcessor::Zoom( double x1, double y1, double x2, double y2, bool upp )
> It also needs a way for the user to set zoom with the mouse, and then
You mean using a zoom tool??
> populate the fields by clicking a button.
?? Don't understand this.
>
> I currently don't see a way to retrieve the zoom level. Is there a way
> to do this?
Zoomlevel?? How is that defined?
The canvas is simply a certain size in world coordinates. Your program what and how much can be
zoomed in or out etc.
Search things like this (drawing.cpp).
else if ( event.GetId() == CmdMenu_ZoomOut2().GetId() )
{
found = true;
a2dDrawingPart* drawer = a2dCanvasGlobals->GetActiveDrawingPart();
if ( !drawer )
return;
if ( !drawer->GetDisplayWindow() )
return;
a2dDrawer2D* dr = drawer->GetDrawer2D();
if ( !dr )
return;
int dx, dy;
drawer->GetDisplayWindow()->GetClientSize( &dx, &dy );
if ( dy > dx ) dx = dy;
dr->SetMappingUpp(
dr->GetVisibleMinX() - dr->GetUppX()*dx*( m_zoomfactor*0.5 - 0.5 ),
dr->GetVisibleMinY() - dr->GetUppY()*dy*( m_zoomfactor*0.5 - 0.5 ),
dr->GetUppX() * m_zoomfactor, dr->GetUppY() * m_zoomfactor );
>
> And if the user currently enters in a zoom level and position, the only
> function I've seen that seems to be made for this is
> a2dCanvas::ZoomOutXy(), but when I enter in values, it doesn't behave as
> expected (what units is ZoomOutXy expecting for x,y, and zoom?).
void a2dCanvas::ZoomOutAtXy( int x, int y, double n )
Is to zoom out at a certain position, and n is the amount, x,y, in mouse coordinates.
> Ideally, I would like the user to be able to enter the zoom value as a
> percentage of the defined image extents,
Which image?
> and be able to enter in xy
> coordinates in world units, and then have the a2dCanvas zoom to the
> level and position.
There are no levels. You need to tell with a2dDrawingPart::SetMappingUpp and others like that, what
will be the worldcoordinates you want to see.
> And when they click the button, I'd like the same
> type of information returned: xy coords in world, and the zoom level
> expressed as a percentage of the defined image extents.
I think you need to calculate this your self, the information on what is show on the canvas is
availble, the rest is for you to do.
If you have an a2dDrawing with objects in it (e.g. one image), a2dCanvas/a2dDrawingPart, can display
part of that.
Which part , is defined in coordinates used in the drawing (world).
Class a2dDrawer2D with SetMappingXXX is what you need to study.
This is the class used to draw, and here is defined what is shown on the canvas etc.
Some of them are available from a2dCanvas directly (wrapped ).
Hope it helps, it is not very clear to me what you are trying to do.
regards,
Klaas
>
> What suggestions do people have for accomplishing this?
>
>
> Thanks,
> - Mike
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Wxart2d-users_dev mailing list
> Wxa...@li...
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
>
|
|
From: Mike G. <mik...@da...> - 2015-09-25 22:50:00
|
The software that we are creating needs a way for the user to enter in a zoom level and xy position that they want to use for the wxArt2d canvas. It also needs a way for the user to set zoom with the mouse, and then populate the fields by clicking a button. I currently don't see a way to retrieve the zoom level. Is there a way to do this? And if the user currently enters in a zoom level and position, the only function I've seen that seems to be made for this is a2dCanvas::ZoomOutXy(), but when I enter in values, it doesn't behave as expected (what units is ZoomOutXy expecting for x,y, and zoom?). Ideally, I would like the user to be able to enter the zoom value as a percentage of the defined image extents, and be able to enter in xy coordinates in world units, and then have the a2dCanvas zoom to the level and position. And when they click the button, I'd like the same type of information returned: xy coords in world, and the zoom level expressed as a percentage of the defined image extents. What suggestions do people have for accomplishing this? Thanks, - Mike |
|
From: Süleyman D. <de...@ar...> - 2015-07-15 14:13:03
|
Hi, it works! Thank you. Regards, Demir Am 14.07.2015 02:57, schrieb klaas.holwerda: > Hi, > > Think it is solved now. > > A flag was added to prevent setting fill when Getfilled() flag was not > set. > But when setting contour width it is needed. > > Regards, > > Klaas > > On 07/09/2015 09:17 AM, Süleyman Demir wrote: >> >> Hello, >> >> I need the ContourWidth to outline the shapes with the stroke (colour >> black) and fill it with another colour (e.g. red), >> like a2dSLine in the image in the attachment. That worked for >> PolyLine too, till i updated after 3 years :-) to the latest wxart2d. >> >> In the image the width are: >> ContourWidth: double 6.0 >> StrokeWidth: double 2.0 >> >> Stroke is black, fill is red >> >> >> Another issue: >> You have to delete dcclient.h from SVN in >> wxArt2D\packages\wxart2d\include\wx. >> I think it should be not there, because of gtk errors while compiling >> under windows. > |
|
From: klaas.holwerda <ng...@kl...> - 2015-07-14 01:18:52
|
Hi, Think it is solved now. A flag was added to prevent setting fill when Getfilled() flag was not set. But when setting contour width it is needed. Regards, Klaas On 07/09/2015 09:17 AM, Süleyman Demir wrote: > > Hello, > > I need the ContourWidth to outline the shapes with the stroke (colour black) and fill it with > another colour (e.g. red), > like a2dSLine in the image in the attachment. That worked for PolyLine too, till i updated after 3 > years :-) to the latest wxart2d. > > In the image the width are: > ContourWidth: double 6.0 > StrokeWidth: double 2.0 > > Stroke is black, fill is red > > > Another issue: > You have to delete dcclient.h from SVN in wxArt2D\packages\wxart2d\include\wx. > I think it should be not there, because of gtk errors while compiling under windows. |
|
From: Süleyman D. <de...@ar...> - 2015-07-09 12:20:09
|
Hello, I need the ContourWidth to outline the shapes with the stroke (colour black) and fill it with another colour (e.g. red), like a2dSLine in the image in the attachment. That worked for PolyLine too, till i updated after 3 years :-) to the latest wxart2d. In the image the width are: ContourWidth: double 6.0 StrokeWidth: double 2.0 Stroke is black, fill is red Another issue: You have to delete dcclient.h from SVN in wxArt2D\packages\wxart2d\include\wx. I think it should be not there, because of gtk errors while compiling under windows. Regards, Demir Am 08.07.2015 11:46, schrieb klaas.holwerda: > Hi, > > SetContourWidth is not for setting the stroke witdh. It is for making > donut shapes from a circle and for other shapes simular effects, > Better leave it to zero. > If you have it set to zero, and the stroke width is m_stroke_width, do > the colors work then for the Polyline? > Also be aware that stroke width can be in pixels or in world size. > > Let me know if this solves anything, > Via the mailinglist please ;-) > > Regards, > > Klaas > > On 07/07/2015 01:22 PM, SD wrote: >> Hello Klaas, >> >> the fillcolour and strokecolour doesn't work with a2dDrawPolylineLTool. >> >> With following Code: >> >> a2dDrawPolylineLTool *winkel = new a2dDrawPolylineLTool (m_toolctrl); >> winkel->SetEvtHandler( new a2dStToolFixedToolStyleEvtHandler( >> m_toolctrl ) ); >> >> a2dFill fill = a2dFill (m_tool_fill_color, a2dFILL_SOLID); >> winkel->SetFill (fill); >> winkel->SetContourWidth (m_contour_width); >> a2dStroke stroke = a2dStroke (m_stroke_color, m_stroke_width, >> a2dSTROKE_SOLID); >> winkel->SetStroke (stroke); >> >> m_toolctrl->PushTool (winkel); >> >> >> Colour for a2dDrawLineTool works fine >> >> a2dDrawLineTool *line = new a2dDrawLineTool (m_toolctrl); >> line->SetEvtHandler( new a2dStToolFixedToolStyleEvtHandler( >> m_toolctrl ) ); >> >> a2dFill fill = a2dFill (m_tool_fill_color, a2dFILL_SOLID); >> line->SetFill (fill); >> line->SetContourWidth (m_contour_width); >> >> a2dStroke stroke = a2dStroke (m_stroke_color, m_stroke_width, >> a2dSTROKE_SOLID); >> line->SetStroke (stroke); >> >> m_toolctrl->PushTool (line); >> >> Polyline and Line >> >> >> Regards >> Demir >> > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > > > _______________________________________________ > Wxart2d-users_dev mailing list > Wxa...@li... > https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev |
|
From: klaas.holwerda <ng...@kl...> - 2015-07-08 09:46:51
|
Hi, SetContourWidth is not for setting the stroke witdh. It is for making donut shapes from a circle and for other shapes simular effects, Better leave it to zero. If you have it set to zero, and the stroke width is m_stroke_width, do the colors work then for the Polyline? Also be aware that stroke width can be in pixels or in world size. Let me know if this solves anything, Via the mailinglist please ;-) Regards, Klaas On 07/07/2015 01:22 PM, SD wrote: > Hello Klaas, > > the fillcolour and strokecolour doesn't work with a2dDrawPolylineLTool. > > With following Code: > > a2dDrawPolylineLTool *winkel = new a2dDrawPolylineLTool (m_toolctrl); > winkel->SetEvtHandler( new a2dStToolFixedToolStyleEvtHandler( m_toolctrl ) ); > > a2dFill fill = a2dFill (m_tool_fill_color, a2dFILL_SOLID); > winkel->SetFill (fill); > winkel->SetContourWidth (m_contour_width); > a2dStroke stroke = a2dStroke (m_stroke_color, m_stroke_width, a2dSTROKE_SOLID); > winkel->SetStroke (stroke); > > m_toolctrl->PushTool (winkel); > > > Colour for a2dDrawLineTool works fine > > a2dDrawLineTool *line = new a2dDrawLineTool (m_toolctrl); > line->SetEvtHandler( new a2dStToolFixedToolStyleEvtHandler( m_toolctrl ) ); > > a2dFill fill = a2dFill (m_tool_fill_color, a2dFILL_SOLID); > line->SetFill (fill); > line->SetContourWidth (m_contour_width); > > a2dStroke stroke = a2dStroke (m_stroke_color, m_stroke_width, a2dSTROKE_SOLID); > line->SetStroke (stroke); > > m_toolctrl->PushTool (line); > > Polyline and Line > > > Regards > Demir > |
|
From: Süleyman D. <de...@ar...> - 2015-06-26 07:40:05
|
Hello Klaas, i think i found the problem. In the root of wxArt2D\packages\wxart2d\include\wx there is a dcclient.h. Maybe it should be not there. Its the same file as in wx\gtk. Regards Demir Am 25.06.2015 23:08, schrieb klaas.holwerda: > Hi, > > Since I am myself at the latest wxart2d, and wxWidgets 3.0.0, and it > compiles, it may be you should remove all in your build directory ( > where cmake points to for the build). > > Will try 3.1.0, later to see all is fine with that version. > > Regards, > > Klaas > > > > On 06/25/2015 10:31 AM, Süleyman Demir wrote: >> >> Hello Klaas, >> >> yes that is it. I do not understand why i get gdk errors on windows. >> >> yes i use cmake to generate the project files. Tried with versions >> 2.8 and 3.2.3. >> >> The errors came after i updated to the latest wxart2d. >> With an older wxart2d (dez. 2011) and latest wxwidgets from git >> (3.1.0) there are no errors. >> >> I cannot get the revision of the older wxart2d because the repository >> moved to another server. >> relocate didnt work because of different uids. >> >> Regards >> Demir >> >> Am 25.06.2015 01:00, schrieb klaas.holwerda: >>> Hi, >>> >>> gdk/gtk I would say that it is not windows, but Linux, but you say >>> windows, and also nmake, so I assume VC. >>> So you do use cmake to generate the makefiles/project files? >>> >>> Maybe the SVN of wxWidgets version is the problem?? >>> With wxWigets 3,0 it did/does compile? >>> Here it does sofar. >>> >>> On 06/24/2015 05:51 AM, Süleyman Demir wrote: >>>> Hello, >>>> >>>> i get some gdk/gtk errors while building my app on windows. >>>> I checked out the latest wxWidgets from svn and build it with nmake. I >>>> was able to compile the thirdparty and wxart2d without errors. >>> Forgot the word not above I think ;-) >>> >>> Regards, >>> >>> Klaas >>>> Here are the errors. >>>> >>>> C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: >>>> syntax error : missing ';' before '*' >>>> C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: >>>> syntax error : missing ';' before '*' >>>> C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: >>>> syntax error : missing ';' before '*' >>>> C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: >>>> 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data >>>> declarations >>>> C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: >>>> 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data >>>> declarations >>>> C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: >>>> 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data >>>> declarations >>>> >>> >>> >> > |
|
From: klaas.holwerda <ng...@kl...> - 2015-06-24 23:23:14
|
Hi, gdk/gtk I would say that it is not windows, but Linux, but you say windows, and also nmake, so I assume VC. So you do use cmake to generate the makefiles/project files? Maybe the SVN of wxWidgets version is the problem?? With wxWigets 3,0 it did/does compile? Here it does sofar. On 06/24/2015 05:51 AM, Süleyman Demir wrote: > Hello, > > i get some gdk/gtk errors while building my app on windows. > I checked out the latest wxWidgets from svn and build it with nmake. I > was able to compile the thirdparty and wxart2d without errors. Forgot the word not above I think ;-) Regards, Klaas > Here are the errors. > > C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: > syntax error : missing ';' before '*' > C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: > syntax error : missing ';' before '*' > C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: > syntax error : missing ';' before '*' > C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: > 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data declarations > C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: > 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data declarations > C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: > 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data declarations > |
|
From: Süleyman D. <de...@ar...> - 2015-06-24 09:06:46
|
Hello, i get some gdk/gtk errors while building my app on windows. I checked out the latest wxWidgets from svn and build it with nmake. I was able to compile the thirdparty and wxart2d without errors. Here are the errors. C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2433: 'wxWindowDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2433: 'wxWindowDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2433: 'wxWindowDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(128): error C2061: syntax error : identifier 'GdkGC' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(128): error C2061: syntax error : identifier 'GdkGC' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(128): error C2061: syntax error : identifier 'GdkGC' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2061: syntax error : identifier 'GdkPixmap' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): warning C4183: 'MonoToColor': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2061: syntax error : identifier 'GdkPixmap' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2061: syntax error : identifier 'GdkPixmap' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2065: 'm_gdkwindow' : undeclared identifier C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): warning C4183: 'MonoToColor': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): warning C4183: 'MonoToColor': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2065: 'm_gdkwindow' : undeclared identifier C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2065: 'm_gdkwindow' : undeclared identifier C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C2433: 'wxGTKDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/gtk/dc.h(136): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(117): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2433: 'wxWindowDCImpl::GdkWindow' : 'virtual' not permitted on data declarations C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): warning C4183: 'GetGDKWindow': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(128): error C2061: syntax error : identifier 'GdkGC' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2143: syntax error : missing ';' before '*' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C2061: syntax error : identifier 'GdkPixmap' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(129): warning C4183: 'MonoToColor': missing return type; assumed to be a member function returning 'int' C:\wxArt2D\packages\wxart2d\include\wx/dcclient.h(125): error C2065: 'm_gdkwindow' : undeclared identifier |
|
From: klaas.holwerda <ng...@kl...> - 2015-01-26 21:23:08
|
Hi Mike,
On 01/26/2015 12:23 PM, Mike Gibson wrote:
> Hi All,
>
> We're trying to implement editing ability with wxArt2d, without using the a2dEditorFrame, because
> we want the editor to be a part of our application, not our whole application. We're currently
> attempting to get a2dStToolContr working, but are not sure if that is the correct solution. We
> want the user to be able to select tools and draw shapes on the canvas, and then we need to be
> able to get information about the shapes from the canvas.
>
There is a switch in wxArt2D called WXART2D_USE_EDITOR if you disable that, the whole wxdocview
framework is not needed anymore, so you will have an a2dDrawing with a2dDrawingPart, and in there
the tools etc.
I think that is what you want/need. And is also simpler to understand.
a2dEditorFrame is more a redirect frame.
sample_canvas_simple should in the new compile come close to what you need.
> Current problems with a2dStToolContr:
> - we are unable to switch tools. Whatever is pushed last is the only tool available. Have tried
> enabling a given tool and marking the "disable all others" flag, but this has no effect. Have
> tried disabling the only
The idea is not to push all required tools.
Only push one tool, and pop the one that is already there.
void a2dCanvasCommandProcessor::OnPushToolMenu( wxCommandEvent& event )
Has a lot of examples of that. In fact a2dCanvasCommandProcessor has many prepared menu to do things.
The oneshot tool pushing might also be something you like. It pops/ends itself after one drawing action.
So why this pushing?? When you draw a polygon, and want to zoom in while drawing, this become the
way to do it. a2dMasterTagGroups3 is also something to consider (there are more types of master tools).
A mastertools organizes how your editor works (pushing and popping tools in a certain predefined
fashion).
a2dMasterTagGroups3 is typical used for connected objects (with wires etc.).
> other tool that has been pushed to the tool control, this also doesn't work.
Right, use as I suggest and as in the samples.
- we cannot change from the default fill of black. Have tried to SetDrawMode(a2dWIREFRAME) but this
also doesn't do anything.
Wire frame is only for objects, better leaf the default drawing style for the moment.
void a2dDrawingPart::SetBackgroundFill( const a2dFill& backgroundfill )
If I add, in MyFrame the next, it does work:
m_canvas->GetDrawingPart()->SetBackgroundFill( a2dFill( wxColour( 100, 17, 155 ) ) );
>
>
> We've noticed that some editor examples came with wxArt2d, but have also noticed that they call
> functions that don't exist. The code is incorrect and does not work.
That helps a lot? They don't compile? Where is the sample?
>
> Also the documentation for the editor classes is incomplete, with large chunks missing, and
> sometimes function prototype comments do not actually match the function prototype.
Yes this type of project with in general one active developer, is not perfect :-(
But you can help! :-) Also some pay to get it done, the rest is hobby.
Anyway, I do mind, but the situation is like this. But be assured, wxArt2D is used in some very nice
applications, and can do lot, the learning curve is therefore steep.
>
>
> All of this makes it very difficult to use the editing capabilities, and we need a good solid
> example. The initialization code follows (note: cnvsCamera is the a2dCanvas*)
>
> void MyFrame::SetupEditor(void)
> {
>
> // Link an editor to the a2dCanvas.
> m_ToolControl = new a2dStToolContr(cnvsCamera->GetCanvasView(), this);
>
>
> m_RectDraw = new a2dDrawRectangleTool(m_ToolControl);
> m_RectDraw->SetName(_T("Square"));
> m_PolyDraw = new a2dDrawPolygonLTool(m_ToolControl);
> m_PolyDraw->SetName(_T("poly"));
> m_ToolControl->PushTool(m_RectDraw);
> m_ToolControl->PushTool(m_PolyDraw);
>
> m_ToolControl->EnableTool(m_RectDraw, true);
>
> m_ToolControl->DisableTool(m_PolyDraw);
> m_ToolControl->SetDrawMode(a2dWIREFRAME);
>
>
> }PushTool
>
> In this example, the result is that the editor tries to draw polygons with a black background.
I suggest you start with the sample I mentioned, and work your way up from there.
Feel free to ask question while busy with that.
All beginning is hard ;-)
Regards,
Klaas
|
|
From: Mike G. <mik...@da...> - 2015-01-26 16:31:46
|
Hi All,
We're trying to implement editing ability with wxArt2d, without using
the a2dEditorFrame, because we want the editor to be a part of our
application, not our whole application. We're currently attempting to
get a2dStToolContr working, but are not sure if that is the correct
solution. We want the user to be able to select tools and draw shapes
on the canvas, and then we need to be able to get information about the
shapes from the canvas.
Current problems with a2dStToolContr:
- we are unable to switch tools. Whatever is pushed last is the only
tool available. Have tried enabling a given tool and marking the
"disable all others" flag, but this has no effect. Have tried disabling
the only other tool that has been pushed to the tool control, this also
doesn't work.
- we cannot change from the default fill of black. Have tried to
SetDrawMode(a2dWIREFRAME) but this also doesn't do anything.
We've noticed that some editor examples came with wxArt2d, but have also
noticed that they call functions that don't exist. The code is incorrect
and does not work.
Also the documentation for the editor classes is incomplete, with large
chunks missing, and sometimes function prototype comments do not
actually match the function prototype.
All of this makes it very difficult to use the editing capabilities, and
we need a good solid example. The initialization code follows (note:
cnvsCamera is the a2dCanvas*)
void MyFrame::SetupEditor(void)
{
// Link an editor to the a2dCanvas.
m_ToolControl = new a2dStToolContr(cnvsCamera->GetCanvasView(), this);
m_RectDraw = new a2dDrawRectangleTool(m_ToolControl);
m_RectDraw->SetName(_T("Square"));
m_PolyDraw = new a2dDrawPolygonLTool(m_ToolControl);
m_PolyDraw->SetName(_T("poly"));
m_ToolControl->PushTool(m_RectDraw);
m_ToolControl->PushTool(m_PolyDraw);
m_ToolControl->EnableTool(m_RectDraw, true);
m_ToolControl->DisableTool(m_PolyDraw);
m_ToolControl->SetDrawMode(a2dWIREFRAME);
}
In this example, the result is that the editor tries to draw polygons
with a black background.
-Mike
|