473,396 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

region xor operation

Hi,

region := region1 xor region1 xor ... xor regionN

region is CRgn from MFC.
xor operation is done by CombineRgn method.

simple region is region, which edges does not overlap.

In general region may be not simple.

My problem is that CRgn gives no method to get from it a set of simple
regions sr1, ..., srK such that

region = sr1 or sr2 or ... or srK.

Do you know any class which will help me to get regions sr1, ..., srK ?

I searched CodeProject and google and find no solution. I believe that I
don't need to implement it by my own. Thanks for any help.

Regards,
Michal Sliwka
Oct 20 '05 #1
3 2236
Michał ¦liwka wrote:
Hi,

region := region1 xor region1 xor ... xor regionN

region is CRgn from MFC.
xor operation is done by CombineRgn method.

simple region is region, which edges does not overlap.

In general region may be not simple.

My problem is that CRgn gives no method to get from it a set of simple
regions sr1, ..., srK such that

region = sr1 or sr2 or ... or srK.

Do you know any class which will help me to get regions sr1, ..., srK ?

I searched CodeProject and google and find no solution. I believe that I
don't need to implement it by my own. Thanks for any help.


Disucssion of MFC classes is OT here. I suggest you try one of the
microsoft newsgroups.

Kristo

Oct 20 '05 #2
Disucssion of MFC classes is OT here. I suggest you try one of the
microsoft newsgroups.


I'm looking for any c++ class that manages regions and fits my needs. CRgn
is only in the example.

Regards,
Michal Sliwka
Oct 20 '05 #3
Michal Sliwka wrote:
Disucssion of MFC classes is OT here. I suggest you try one of the
microsoft newsgroups.


I'm looking for any c++ class that manages regions and fits my needs. CRgn
is only in the example.


It looks to me you are searching for some 2D-Boolean Operations library.
Google for one.
--
Karl Heinz Buchegger
kb******@gascad.at
Oct 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Altramagnus | last post by:
I have a complicated Region object, which I need to draw the outline, but not fill How can I convert the Region object to GraphicsPath object? or How can I draw the outline of the Region object?
6
by: Jim | last post by:
Are #region a bad thing or are they good? As far as I see it #region's are a bad thing as they let lazy programmmers have large and bloated methods divided into regions that then appear as small...
4
by: Brian Basquille | last post by:
Hello all, Quick question! How would i keep a point inside a region? For example, the mouse pointer. You should be able to move the mouse around in this region but not anywhere outside it. ...
1
by: Steven T. Hatton | last post by:
All of the following terms are used in some way to describe where and how a name is relevant to a particular location in a program: visible, declarative region, scope, potential scope, valid,...
37
by: Ajai Jose | last post by:
Hi , I work on an ARM processor based embedded system. Code is mainly in C language. The project has a huge source base. We are supposed to optimise it. Most datastructures are declared as static...
1
by: Sagaert Johan | last post by:
i have a control that uses a region to make it non rectangular when i try to to remove the region by calling this.Region.Makeinfinite() the control keeps its non rectangular Region. if i call...
3
by: Grant Edwards | last post by:
I've recently switched from Jed to Emacs for editing python source, and I'm still stumped as to how one indents or dedents a region of code. In Jed it's 'C-c <' or 'C-c >'. Google has found...
1
by: Chris Thomasson | last post by:
This region allocator is not dynamic and can be fed with a buffer residing on the stack of the calling thread. Therefore, you can use this in an environment which does not have a heap; its...
8
by: Chris M. Thomasson | last post by:
Here is the initial crude implmentation which compiles under Comeau with no warnings: ___________________________________________________________________ #include <cassert> #include <cstdlib>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.